diff options
author | Brett Cannon <bcannon@gmail.com> | 2011-01-25 18:26:35 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2011-01-25 18:26:35 (GMT) |
commit | 5543e8135240cfe4f3d1021c1debe752e3cd7309 (patch) | |
tree | e2479dcb7e6f500085e8438954a8b566bee50100 /Lib | |
parent | cfad97b3cad38bde3039169b61c4a28e26631acc (diff) | |
download | cpython-5543e8135240cfe4f3d1021c1debe752e3cd7309.zip cpython-5543e8135240cfe4f3d1021c1debe752e3cd7309.tar.gz cpython-5543e8135240cfe4f3d1021c1debe752e3cd7309.tar.bz2 |
Tighten the restrictions on the test_sys test which triggers a fatal error when
run with tracing turned on.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_sys.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 52e7239..d37651e 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -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 |