Skip to content

Commit

Permalink
xfail on upstream error
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Mar 18, 2024
1 parent d8aadbb commit 8d0e331
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hypothesis-python/tests/nocover/test_scrutineer.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ def get_reports(file_contents, *, testdir):
test_file = str(testdir.makepyfile(file_contents))
pytest_stdout = str(testdir.runpytest_inprocess(test_file, "--tb=native").stdout)

crash = "AttributeError: module 'blib2to3.pygram' has no attribute 'python_symbols'"
if crash in pytest_stdout:
pytest.xfail(reason="upstream error in Black")

explanations = {
i: {(test_file, i)}
for i, line in enumerate(file_contents.splitlines())
Expand Down

0 comments on commit 8d0e331

Please sign in to comment.