diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2016-12-31 09:48:34 -0500 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-12-31 09:48:34 -0500 |
| commit | d4527c3eee82d95763658b29cf5b80b17e098c4b (patch) | |
| tree | db058abe2f456b7ecc78b85b675c0fea39bc0b83 /tests | |
| parent | 97d96cc8c6d3df79848da698b4072523cc8bb660 (diff) | |
| download | python-coveragepy-d4527c3eee82d95763658b29cf5b80b17e098c4b.tar.gz | |
The PyPy-specific test for atexit/gettrace are also PyPy-version-specific...
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_oddball.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_oddball.py b/tests/test_oddball.py index dce65b4..d188aa7 100644 --- a/tests/test_oddball.py +++ b/tests/test_oddball.py @@ -515,8 +515,8 @@ class GettraceTest(CoverageTest): """) status, out = self.run_command_status("python atexit_gettrace.py") self.assertEqual(status, 0) - if env.PYPY: - # PyPy clears the trace function before atexit runs. + if env.PYPY and env.PYPYVERSION >= (5, 4): + # Newer PyPy clears the trace function before atexit runs. self.assertEqual(out, "None\n") else: # Other Pythons leave the trace function in place. |
