[Python-checkins] r88188 - python/branches/py3k/Lib/test/test_sys.py
brett.cannon
python-checkins at python.org
Tue Jan 25 19:26:35 CET 2011
Author: brett.cannon
Date: Tue Jan 25 19:26:35 2011
New Revision: 88188
Log:
Tighten the restrictions on the test_sys test which triggers a fatal error when
run with tracing turned on.
Modified:
python/branches/py3k/Lib/test/test_sys.py
Modified: python/branches/py3k/Lib/test/test_sys.py
==============================================================================
--- python/branches/py3k/Lib/test/test_sys.py (original)
+++ python/branches/py3k/Lib/test/test_sys.py Tue Jan 25 19:26:35 2011
@@ -215,8 +215,8 @@
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
More information about the Python-checkins
mailing list