[Python-checkins] r88153 - python/branches/py3k/Lib/test/test_sys.py

brett.cannon python-checkins at python.org
Mon Jan 24 00:06:05 CET 2011


Author: brett.cannon
Date: Mon Jan 24 00:06:05 2011
New Revision: 88153

Log:
Skip a recursion depth check test when running under CPython and have a trace
function set. Otherwise a Python fatal error about hitting an unrecoverable
recursion depth gets triggered.

Closes issue #10985. Code review by Georg Brandl.


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	Mon Jan 24 00:06:05 2011
@@ -215,6 +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
     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