From d4527c3eee82d95763658b29cf5b80b17e098c4b Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 31 Dec 2016 09:48:34 -0500 Subject: The PyPy-specific test for atexit/gettrace are also PyPy-version-specific... --- tests/test_oddball.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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. -- cgit v1.2.1