Skip to content

Commit

Permalink
Tighten the restrictions on the test_sys test which triggers a fatal …
Browse files Browse the repository at this point in the history
…error when

run with tracing turned on.
  • Loading branch information
brettcannon committed Jan 25, 2011
1 parent cfad97b commit 5543e81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_sys.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ def test_recursionlimit(self):
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
Expand Down

0 comments on commit 5543e81

Please sign in to comment.