Skip to content

Commit

Permalink
Suppress UnicodeDecodeError when a non-standard encoding is encountered.
Browse files Browse the repository at this point in the history
Closes #9.
  • Loading branch information
jaraco committed Jan 28, 2024
1 parent 0374b60 commit e827535
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/+5ab4691c.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Suppress UnicodeDecodeError when a non-standard encoding is encountered.
3 changes: 2 additions & 1 deletion pytest_perf/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def _collect_file_pytest6(parent, path):


old_pytest = Version(pytest.__version__) < Version('7')
pytest_collect_file = _collect_file_pytest6 if old_pytest else _collect_file_pytest7
pytest_collect_file = suppress(UnicodeDecodeError)(
_collect_file_pytest6 if old_pytest else _collect_file_pytest7)


def pytest_terminal_summary(terminalreporter, config):
Expand Down

0 comments on commit e827535

Please sign in to comment.