diff options
Diffstat (limited to 'tests/test_oddball.py')
-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 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. |