eric6/DebugClients/Python/coverage/env.py

changeset 7702
f8b97639deb5
parent 7427
362cd1b6f81a
child 7975
7d493839a8fc
equal deleted inserted replaced
7701:25f42e208e08 7702:f8b97639deb5
55 55
56 # PEP 448 defined additional unpacking generalizations 56 # PEP 448 defined additional unpacking generalizations
57 unpackings_pep448 = (PYVERSION >= (3, 5)) 57 unpackings_pep448 = (PYVERSION >= (3, 5))
58 58
59 # Can co_lnotab have negative deltas? 59 # Can co_lnotab have negative deltas?
60 negative_lnotab = (PYVERSION >= (3, 6)) 60 negative_lnotab = (PYVERSION >= (3, 6)) and not (PYPY and PYPYVERSION < (7, 2))
61 61
62 # Do .pyc files conform to PEP 552? Hash-based pyc's. 62 # Do .pyc files conform to PEP 552? Hash-based pyc's.
63 hashed_pyc_pep552 = (PYVERSION >= (3, 7, 0, 'alpha', 4)) 63 hashed_pyc_pep552 = (PYVERSION >= (3, 7, 0, 'alpha', 4))
64 64
65 # Python 3.7.0b3 changed the behavior of the sys.path[0] entry for -m. It 65 # Python 3.7.0b3 changed the behavior of the sys.path[0] entry for -m. It
83 nix_while_true = (PYVERSION >= (3, 8)) 83 nix_while_true = (PYVERSION >= (3, 8))
84 84
85 # Python 3.9a1 made sys.argv[0] and other reported files absolute paths. 85 # Python 3.9a1 made sys.argv[0] and other reported files absolute paths.
86 report_absolute_files = (PYVERSION >= (3, 9)) 86 report_absolute_files = (PYVERSION >= (3, 9))
87 87
88 # Python 3.9a2 changed how return/finally was traced, but it was
89 # temporary.
90 bpo39114 = (PYVERSION == (3, 9, 0, 'alpha', 2, 0))
91
92 # Coverage.py specifics. 88 # Coverage.py specifics.
93 89
94 # Are we using the C-implemented trace function? 90 # Are we using the C-implemented trace function?
95 C_TRACER = os.getenv('COVERAGE_TEST_TRACER', 'c') == 'c' 91 C_TRACER = os.getenv('COVERAGE_TEST_TRACER', 'c') == 'c'
96 92

eric ide

mercurial