mirror of
https://github.com/python/cpython.git
synced 2025-12-09 10:37:17 +00:00
Tighten the restrictions on the test_sys test which triggers a fatal error when
run with tracing turned on.
This commit is contained in:
parent
cfad97b3ca
commit
5543e81352
1 changed files with 2 additions and 2 deletions
|
|
@ -215,8 +215,8 @@ class SysModuleTest(unittest.TestCase):
|
||||||
self.assertEqual(sys.getrecursionlimit(), 10000)
|
self.assertEqual(sys.getrecursionlimit(), 10000)
|
||||||
sys.setrecursionlimit(oldlimit)
|
sys.setrecursionlimit(oldlimit)
|
||||||
|
|
||||||
@unittest.skipIf(sys.gettrace(), 'fatal error if run with a trace function')
|
@unittest.skipIf(hasattr(sys, 'gettrace') and sys.gettrace(),
|
||||||
@test.support.cpython_only
|
'fatal error if run with a trace function')
|
||||||
def test_recursionlimit_recovery(self):
|
def test_recursionlimit_recovery(self):
|
||||||
# NOTE: this test is slightly fragile in that it depends on the current
|
# 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
|
# recursion count when executing the test being low enough so as to
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue