Skip to content

Commit

Permalink
fix: exclude enum files only for PYPY test runs
Browse files Browse the repository at this point in the history
  • Loading branch information
15r10nk committed Oct 4, 2022
1 parent eb3c450 commit dcbcc6b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,13 +711,16 @@ def test_module_files(self):
if (
# The sentinel actually appearing in code messes things up
'executing' in filename
# ignore pytest files because they break the SentinelNodeFinder
or '_pytest' in filename
or 'enum' in filename
# because of: {t[0] for t in lines2} - {t[0] for t in lines1}
or 'pytester.py' in filename
# A file that's particularly slow
or 'errorcodes.py' in filename
# Contains unreachable code which pypy removes
or PYPY and ('sysconfig.py' in filename or 'pyparsing.py' in filename)
or PYPY and (
'sysconfig.py' in filename
or 'pyparsing.py' in filename
or 'enum' in filename
)
):
continue

Expand Down

0 comments on commit dcbcc6b

Please sign in to comment.