2016-08-26 14:31:09 +03:00
|
|
|
diff -Naur Python-3.5.2.orig/Lib/test/test_gdb.py Python-3.5.2/Lib/test/test_gdb.py
|
|
|
|
--- Python-3.5.2.orig/Lib/test/test_gdb.py 2016-08-26 14:24:30.755139630 +0300
|
|
|
|
+++ Python-3.5.2/Lib/test/test_gdb.py 2016-08-26 14:24:30.765139606 +0300
|
|
|
|
@@ -144,6 +144,14 @@
|
2014-06-25 19:24:49 +04:00
|
|
|
commands = ['set breakpoint pending yes',
|
|
|
|
'break %s' % breakpoint,
|
2015-02-26 22:40:55 +04:00
|
|
|
|
2014-06-25 19:24:49 +04:00
|
|
|
+ # GDB as of Fedora 17 onwards can distinguish between the
|
|
|
|
+ # value of a variable at entry vs current value:
|
|
|
|
+ # http://sourceware.org/gdb/onlinedocs/gdb/Variables.html
|
|
|
|
+ # which leads to the selftests failing with errors like this:
|
|
|
|
+ # AssertionError: 'v@entry=()' != '()'
|
|
|
|
+ # Disable this:
|
|
|
|
+ 'set print entry-values no',
|
|
|
|
+
|
2015-02-26 22:40:55 +04:00
|
|
|
# The tests assume that the first frame of printed
|
|
|
|
# backtrace will not contain program counter,
|
|
|
|
# that is however not guaranteed by gdb
|
2016-08-26 14:31:09 +03:00
|
|
|
@@ -206,6 +214,10 @@
|
|
|
|
# ignore all warnings
|
|
|
|
'warning: ',
|
2014-06-25 19:24:49 +04:00
|
|
|
)
|
|
|
|
+ ignore_patterns += ('warning: Unable to open',
|
|
|
|
+ 'Missing separate debuginfo for',
|
|
|
|
+ 'Try: yum --disablerepo=',
|
|
|
|
+ 'Undefined set print command')
|
|
|
|
for line in errlines:
|
2016-08-26 14:31:09 +03:00
|
|
|
if not line:
|
|
|
|
continue
|