mirror of
https://abf.rosa.ru/djam/python38.git
synced 2025-02-23 23:32:49 +00:00
29 lines
1.5 KiB
Diff
29 lines
1.5 KiB
Diff
diff -Naur Python-3.4.3.orig/Lib/test/test_gdb.py Python-3.4.3/Lib/test/test_gdb.py
|
|
--- Python-3.4.3.orig/Lib/test/test_gdb.py 2015-02-26 22:33:10.000000000 +0400
|
|
+++ Python-3.4.3/Lib/test/test_gdb.py 2015-02-26 22:34:14.000000000 +0400
|
|
@@ -124,6 +124,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
|
|
@@ -197,6 +205,10 @@
|
|
'Missing separate debuginfo for ',
|
|
'Try: zypper install -C ',
|
|
)
|
|
+ ignore_patterns += ('warning: Unable to open',
|
|
+ 'Missing separate debuginfo for',
|
|
+ 'Try: yum --disablerepo=',
|
|
+ 'Undefined set print command')
|
|
for line in errlines:
|
|
if not line.startswith(ignore_patterns):
|
|
unexpected_errlines.append(line)
|