python3.11/python3-3.5.2-fix-test_gdb-noise.patch
2016-08-26 14:31:09 +03:00

29 lines
1.4 KiB
Diff

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 @@
commands = ['set breakpoint pending yes',
'break %s' % breakpoint,
+ # 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',
+
# The tests assume that the first frame of printed
# backtrace will not contain program counter,
# that is however not guaranteed by gdb
@@ -206,6 +214,10 @@
# ignore all warnings
'warning: ',
)
+ ignore_patterns += ('warning: Unable to open',
+ 'Missing separate debuginfo for',
+ 'Try: yum --disablerepo=',
+ 'Undefined set print command')
for line in errlines:
if not line:
continue