[Python-checkins] cpython (3.2): Closes #13699. Skipped two tests if Python is optimised.

vinay.sajip python-checkins at python.org
Thu Jan 5 12:46:45 CET 2012


http://hg.python.org/cpython/rev/a3d4cde1c357
changeset: 74275:a3d4cde1c357
branch: 3.2
parent: 74273:326f755962e3
user: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: Thu Jan 05 11:45:31 2012 +0000
summary:
 Closes #13699. Skipped two tests if Python is optimised.
files:
 Lib/test/test_gdb.py | 4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py
--- a/Lib/test/test_gdb.py
+++ b/Lib/test/test_gdb.py
@@ -662,6 +662,8 @@
 self.assertMultilineMatches(bt,
 r".*\nlocal 'args' = \(1, 2, 3\)\n.*")
 
+ @unittest.skipIf(python_is_optimized(),
+ "Python was compiled with optimizations")
 @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
 def test_print_after_up(self):
 bt = self.get_stack_trace(script=self.get_sample_script(),
@@ -695,6 +697,8 @@
 r".*\nargs = \(1, 2, 3\)\n.*")
 
 @unittest.skipUnless(HAS_PYUP_PYDOWN, "test requires py-up/py-down commands")
+ @unittest.skipIf(python_is_optimized(),
+ "Python was compiled with optimizations")
 def test_locals_after_up(self):
 bt = self.get_stack_trace(script=self.get_sample_script(),
 cmds_after_breakpoint=['py-up', 'py-locals'])
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /