Commit 938cfc0e authored by Brett Cannon's avatar Brett Cannon

Tighten the restrictions on the test_sys test which triggers a fatal error when

run with tracing turned on.
parent 4f6d5c94
......@@ -215,8 +215,8 @@ class SysModuleTest(unittest.TestCase):
self.assertEqual(sys.getrecursionlimit(), 10000)
sys.setrecursionlimit(oldlimit)
@unittest.skipIf(sys.gettrace(), 'fatal error if run with a trace function')
@test.support.cpython_only
@unittest.skipIf(hasattr(sys, 'gettrace') and sys.gettrace(),
'fatal error if run with a trace function')
def test_recursionlimit_recovery(self):
# NOTE: this test is slightly fragile in that it depends on the current
# recursion count when executing the test being low enough so as to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment