[Python-checkins] cpython (2.7): Disable test_gdb.PrettyPrintTests when compiled with optimizations,
gregory.p.smith
python-checkins at python.org
Fri Sep 9 00:50:57 EDT 2016
https://hg.python.org/cpython/rev/3cce329c20e6
changeset: 103391:3cce329c20e6
branch: 2.7
parent: 103384:7e89469e4342
user: Gregory P. Smith <greg at krypto.org>
date: Thu Sep 08 21:50:44 2016 -0700
summary:
Disable test_gdb.PrettyPrintTests when compiled with optimizations,
these often fail on PGO builds.
files:
Lib/test/test_gdb.py | 3 +++
1 files changed, 3 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
@@ -265,6 +265,9 @@
def get_sample_script(self):
return findfile('gdb_sample.py')
+
+ at 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')
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list