summaryrefslogtreecommitdiff
path: root/tests/test_oddball.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-12-31 09:48:34 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-12-31 09:48:34 -0500
commitcb491e7f906cd0dca3718cc05bc00b738b638f7d (patch)
tree1f956ec952fc8438c8baedf593816721b40b83a0 /tests/test_oddball.py
parentb04a2edd0b3795565982e362bae9414a0e38dbe3 (diff)
downloadpython-coveragepy-git-cb491e7f906cd0dca3718cc05bc00b738b638f7d.tar.gz
The PyPy-specific test for atexit/gettrace are also PyPy-version-specific...
Diffstat (limited to 'tests/test_oddball.py')
-rw-r--r--tests/test_oddball.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_oddball.py b/tests/test_oddball.py
index dce65b4e..d188aa78 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.