[issue23381] Python 2.7.9+ test_gdb regression on Ubuntu 10.04
Vinson Lee
report at bugs.python.org
Tue Feb 3 01:14:54 CET 2015
New submission from Vinson Lee:
Python 2.7.9+ test_gdb regressed on Ubuntu 10.04.
063d966b78f0c0b7cf4c937991bf883c563f574e is the first bad commit
commit 063d966b78f0c0b7cf4c937991bf883c563f574e
Author: Serhiy Storchaka <storchaka at gmail.com>
Date: Sat Jan 31 11:48:36 2015 +0200
Issue #22765: Fixed test_gdb failures. Supressed unexpected gdb output.
Patch by Bohuslav Kabrda.
:040000 040000 dd420a96366b568ad8ae5e7c88759d743b29584c 0eb56f3c2d8d731985ae93258170e00571ae9a35 M Lib
bisect run success
$ gdb --version
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
$ ./python Lib/test/regrtest.py -v test_gdb
== CPython 2.7.9+ (default, Feb 2 2015, 15:48:27) [GCC 4.4.3]
== Linux-2.6.32-71-generic-x86_64-with-debian-squeeze-sid little-endian
== cpython/build/test_python_29238
Testing with flags: sys.flags(debug=0, py3k_warning=0, division_warning=0, division_new=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, tabcheck=0, verbose=0, unicode=0, bytes_warning=0, hash_randomization=0)
[1/1] test_gdb
test_NULL_instance_dict (test.test_gdb.PrettyPrintTests)
Ensure that a PyInstanceObject with with a NULL in_dict is handled ... FAIL
test_NULL_ob_type (test.test_gdb.PrettyPrintTests)
Ensure that a PyObject* with NULL ob_type is handled gracefully ... FAIL
test_NULL_ptr (test.test_gdb.PrettyPrintTests)
Ensure that a NULL PyObject* is handled gracefully ... FAIL
test_builtin_function (test.test_gdb.PrettyPrintTests) ... FAIL
test_builtin_method (test.test_gdb.PrettyPrintTests) ... FAIL
test_builtins_help (test.test_gdb.PrettyPrintTests)
Ensure that the new-style class _Helper in site.py can be handled ... FAIL
test_classic_class (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of classic class instances ... FAIL
test_corrupt_ob_type (test.test_gdb.PrettyPrintTests)
Ensure that a PyObject* with a corrupt ob_type is handled gracefully ... FAIL
test_corrupt_tp_flags (test.test_gdb.PrettyPrintTests)
Ensure that a PyObject* with a type with corrupt tp_flags is handled ... FAIL
test_corrupt_tp_name (test.test_gdb.PrettyPrintTests)
Ensure that a PyObject* with a type with corrupt tp_name is handled ... FAIL
test_dicts (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of dictionaries ... FAIL
test_exceptions (test.test_gdb.PrettyPrintTests) ... FAIL
test_frames (test.test_gdb.PrettyPrintTests) ... FAIL
test_frozensets (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of frozensets ... FAIL
test_getting_backtrace (test.test_gdb.PrettyPrintTests) ... FAIL
test_int (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of various "int" values ... FAIL
test_lists (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of lists ... FAIL
test_long (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of various "long" values ... FAIL
test_modern_class (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of new-style class instances ... FAIL
test_selfreferential_dict (test.test_gdb.PrettyPrintTests)
Ensure that a reference loop involving a dict doesn't lead proxyval ... FAIL
test_selfreferential_list (test.test_gdb.PrettyPrintTests)
Ensure that a reference loop involving a list doesn't lead proxyval ... FAIL
test_selfreferential_new_style_instance (test.test_gdb.PrettyPrintTests) ... FAIL
test_selfreferential_old_style_instance (test.test_gdb.PrettyPrintTests) ... FAIL
test_sets (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of sets ... FAIL
test_singletons (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of True, False and None ... FAIL
test_strings (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of strings ... FAIL
test_subclassing_list (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of an instance of a list subclass ... FAIL
test_subclassing_tuple (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of an instance of a tuple subclass ... FAIL
test_truncation (test.test_gdb.PrettyPrintTests)
Verify that very long output is truncated ... FAIL
test_tuples (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of tuples ... FAIL
test_unicode (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of unicode values ... FAIL
test_basic_command (test.test_gdb.PyListTests)
Verify that the "py-list" command works ... skipped 'Python was compiled with optimizations'
test_one_abs_arg (test.test_gdb.PyListTests)
Verify the "py-list" command with one absolute argument ... skipped 'Python was compiled with optimizations'
test_two_abs_args (test.test_gdb.PyListTests)
Verify the "py-list" command with two absolute arguments ... skipped 'Python was compiled with optimizations'
test_down_at_bottom (test.test_gdb.StackNavigationTests)
Verify handling of "py-down" at the bottom of the stack ... skipped 'test requires py-up/py-down commands'
test_pyup_command (test.test_gdb.StackNavigationTests)
Verify that the "py-up" command works ... skipped 'test requires py-up/py-down commands'
test_up_at_top (test.test_gdb.StackNavigationTests)
Verify handling of "py-up" at the top of the stack ... skipped 'test requires py-up/py-down commands'
test_up_then_down (test.test_gdb.StackNavigationTests)
Verify "py-up" followed by "py-down" ... skipped 'test requires py-up/py-down commands'
test_basic_command (test.test_gdb.PyBtTests)
Verify that the "py-bt" command works ... skipped 'Python was compiled with optimizations'
test_basic_command (test.test_gdb.PyPrintTests)
Verify that the "py-print" command works ... skipped 'Python was compiled with optimizations'
test_print_after_up (test.test_gdb.PyPrintTests) ... skipped 'test requires py-up/py-down commands'
test_printing_builtin (test.test_gdb.PyPrintTests) ... skipped 'Python was compiled with optimizations'
test_printing_global (test.test_gdb.PyPrintTests) ... skipped 'Python was compiled with optimizations'
test_basic_command (test.test_gdb.PyLocalsTests) ... skipped 'Python was compiled with optimizations'
test_locals_after_up (test.test_gdb.PyLocalsTests) ... skipped 'test requires py-up/py-down commands'
======================================================================
FAIL: test_NULL_instance_dict (test.test_gdb.PrettyPrintTests)
Ensure that a PyInstanceObject with with a NULL in_dict is handled
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 495, in test_NULL_instance_dict
exptype='Foo')
File "cpython/Lib/test/test_gdb.py", line 433, in assertSane
cmds_after_breakpoint=cmds_after_breakpoint)
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_NULL_ob_type (test.test_gdb.PrettyPrintTests)
Ensure that a PyObject* with NULL ob_type is handled gracefully
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 466, in test_NULL_ob_type
'set op->ob_type=0')
File "cpython/Lib/test/test_gdb.py", line 433, in assertSane
cmds_after_breakpoint=cmds_after_breakpoint)
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_NULL_ptr (test.test_gdb.PrettyPrintTests)
Ensure that a NULL PyObject* is handled gracefully
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 458, in test_NULL_ptr
'backtrace'])
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_builtin_function (test.test_gdb.PrettyPrintTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 597, in test_builtin_function
gdb_repr, gdb_output = self.get_gdb_repr('print len')
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_builtin_method (test.test_gdb.PrettyPrintTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 601, in test_builtin_method
gdb_repr, gdb_output = self.get_gdb_repr('import sys; print sys.stdout.readlines')
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_builtins_help (test.test_gdb.PrettyPrintTests)
Ensure that the new-style class _Helper in site.py can be handled
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 502, in test_builtins_help
gdb_repr, gdb_output = self.get_gdb_repr('print __builtins__.help', import_site=True)
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_classic_class (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of classic class instances
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 376, in test_classic_class
print foo''')
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_corrupt_ob_type (test.test_gdb.PrettyPrintTests)
Ensure that a PyObject* with a corrupt ob_type is handled gracefully
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 472, in test_corrupt_ob_type
expvalue=42)
File "cpython/Lib/test/test_gdb.py", line 433, in assertSane
cmds_after_breakpoint=cmds_after_breakpoint)
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_corrupt_tp_flags (test.test_gdb.PrettyPrintTests)
Ensure that a PyObject* with a type with corrupt tp_flags is handled
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 478, in test_corrupt_tp_flags
expvalue=42)
File "cpython/Lib/test/test_gdb.py", line 433, in assertSane
cmds_after_breakpoint=cmds_after_breakpoint)
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_corrupt_tp_name (test.test_gdb.PrettyPrintTests)
Ensure that a PyObject* with a type with corrupt tp_name is handled
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 484, in test_corrupt_tp_name
expvalue=42)
File "cpython/Lib/test/test_gdb.py", line 433, in assertSane
cmds_after_breakpoint=cmds_after_breakpoint)
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_dicts (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of dictionaries
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 270, in test_dicts
self.assertGdbRepr({})
File "cpython/Lib/test/test_gdb.py", line 244, in assertGdbRepr
cmds_after_breakpoint)
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_exceptions (test.test_gdb.PrettyPrintTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 354, in test_exceptions
''')
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_frames (test.test_gdb.PrettyPrintTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 615, in test_frames
cmds_after_breakpoint=['print (PyFrameObject*)(((PyCodeObject*)op)->co_zombieframe)']
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_frozensets (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of frozensets
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 337, in test_frozensets
self.assertGdbRepr(frozenset())
File "cpython/Lib/test/test_gdb.py", line 244, in assertGdbRepr
cmds_after_breakpoint)
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_getting_backtrace (test.test_gdb.PrettyPrintTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 237, in test_getting_backtrace
gdb_output = self.get_stack_trace('print 42')
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_int (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of various "int" values
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 249, in test_int
self.assertGdbRepr(42)
File "cpython/Lib/test/test_gdb.py", line 244, in assertGdbRepr
cmds_after_breakpoint)
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_lists (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of lists
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 276, in test_lists
self.assertGdbRepr([])
File "cpython/Lib/test/test_gdb.py", line 244, in assertGdbRepr
cmds_after_breakpoint)
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_long (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of various "long" values
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 257, in test_long
self.assertGdbRepr(0L)
File "cpython/Lib/test/test_gdb.py", line 244, in assertGdbRepr
cmds_after_breakpoint)
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_modern_class (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of new-style class instances
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 388, in test_modern_class
print foo''')
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_selfreferential_dict (test.test_gdb.PrettyPrintTests)
Ensure that a reference loop involving a dict doesn't lead proxyval
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 524, in test_selfreferential_dict
self.get_gdb_repr("a = {} ; b = {'bar':a} ; a['foo'] = b ; print a")
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_selfreferential_list (test.test_gdb.PrettyPrintTests)
Ensure that a reference loop involving a list doesn't lead proxyval
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 511, in test_selfreferential_list
self.get_gdb_repr("a = [3, 4, 5] ; a.append(a) ; print a")
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_selfreferential_new_style_instance (test.test_gdb.PrettyPrintTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 548, in test_selfreferential_new_style_instance
print foo''')
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_selfreferential_old_style_instance (test.test_gdb.PrettyPrintTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 535, in test_selfreferential_old_style_instance
print foo''')
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_sets (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of sets
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 318, in test_sets
self.assertGdbRepr(set())
File "cpython/Lib/test/test_gdb.py", line 244, in assertGdbRepr
cmds_after_breakpoint)
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_singletons (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of True, False and None
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 264, in test_singletons
self.assertGdbRepr(True)
File "cpython/Lib/test/test_gdb.py", line 244, in assertGdbRepr
cmds_after_breakpoint)
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_strings (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of strings
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 281, in test_strings
self.assertGdbRepr('')
File "cpython/Lib/test/test_gdb.py", line 244, in assertGdbRepr
cmds_after_breakpoint)
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_subclassing_list (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of an instance of a list subclass
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 401, in test_subclassing_list
print foo''')
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_subclassing_tuple (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of an instance of a tuple subclass
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 415, in test_subclassing_tuple
print foo''')
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_truncation (test.test_gdb.PrettyPrintTests)
Verify that very long output is truncated
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 570, in test_truncation
gdb_repr, gdb_output = self.get_gdb_repr('print range(1000)')
File "cpython/Lib/test/test_gdb.py", linetest test_gdb failed -- multiple errors occurred
213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_tuples (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of tuples
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 288, in test_tuples
self.assertGdbRepr(tuple())
File "cpython/Lib/test/test_gdb.py", line 244, in assertGdbRepr
cmds_after_breakpoint)
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
======================================================================
FAIL: test_unicode (test.test_gdb.PrettyPrintTests)
Verify the pretty-printing of unicode values
----------------------------------------------------------------------
Traceback (most recent call last):
File "cpython/Lib/test/test_gdb.py", line 295, in test_unicode
self.assertGdbRepr(u'')
File "cpython/Lib/test/test_gdb.py", line 244, in assertGdbRepr
cmds_after_breakpoint)
File "cpython/Lib/test/test_gdb.py", line 213, in get_gdb_repr
import_site=import_site)
File "cpython/Lib/test/test_gdb.py", line 198, in get_stack_trace
self.assertEqual(unexpected_errlines, [])
AssertionError: Lists differ: ['Undefined set print command:... != []
First list contains 1 additional elements.
First extra element 0:
Undefined set print command: "entry-values no". Try "help set print".
- ['Undefined set print command: "entry-values no". Try "help set print".']
+ []
----------------------------------------------------------------------
Ran 45 tests in 3.121s
FAILED (failures=31, skipped=14)
1 test failed:
test_gdb
----------
components: Tests
messages: 235311
nosy: serhiy.storchaka, vlee
priority: normal
severity: normal
status: open
title: Python 2.7.9+ test_gdb regression on Ubuntu 10.04
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23381>
_______________________________________
More information about the Python-bugs-list
mailing list