From: Gregory P. Smith Date: Fri, 9 Sep 2016 04:50:44 +0000 (-0700) Subject: Disable test_gdb.PrettyPrintTests when compiled with optimizations, X-Git-Tag: v2.7.13rc1~147 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77ba5969d656668a21d3ad2c96446363a4d4427d;p=python Disable test_gdb.PrettyPrintTests when compiled with optimizations, these often fail on PGO builds. --- diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py index 313af2b4ba..38e570f4bf 100644 --- a/Lib/test/test_gdb.py +++ b/Lib/test/test_gdb.py @@ -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')