]> granicus.if.org Git - python/commitdiff
Disable test_gdb.PrettyPrintTests when compiled with optimizations,
authorGregory P. Smith <greg@krypto.org>
Fri, 9 Sep 2016 04:50:44 +0000 (21:50 -0700)
committerGregory P. Smith <greg@krypto.org>
Fri, 9 Sep 2016 04:50:44 +0000 (21:50 -0700)
these often fail on PGO builds.

Lib/test/test_gdb.py

index 313af2b4bab637b6435d1490b2fc1e27322ae31f..38e570f4bf044b432cc527d1d2a1f5382a48ee29 100644 (file)
@@ -265,6 +265,9 @@ class DebuggerTests(unittest.TestCase):
     def get_sample_script(self):
         return findfile('gdb_sample.py')
 
+
+@unittest.skipIf(python_is_optimized(),
+                 "Python was compiled with optimizations")
 class PrettyPrintTests(DebuggerTests):
     def test_getting_backtrace(self):
         gdb_output = self.get_stack_trace('print 42')