== CPython 2.7a4+ (trunk:79729, Apr 4 2010, 10:53:32) [GCC 4.4.1] == Linux-2.6.31-20-generic-x86_64-with-debian-squeeze-sid == /home/ncoghlan/devel/python/build/test_python_3945 test_gdb test_NULL_instance_dict (test.test_gdb.PrettyPrintTests) Ensure that a PyInstanceObject with with a NULL in_dict is handled ... ok test_NULL_ob_type (test.test_gdb.PrettyPrintTests) Ensure that a PyObject* with NULL ob_type is handled gracefully ... ok test_NULL_ptr (test.test_gdb.PrettyPrintTests) Ensure that a NULL PyObject* is handled gracefully ... ok test_builtin_function (test.test_gdb.PrettyPrintTests) ... ok 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 ... ok test_classic_class (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of classic class instances ... ok test_corrupt_ob_type (test.test_gdb.PrettyPrintTests) Ensure that a PyObject* with a corrupt ob_type is handled gracefully ... ok test_corrupt_tp_flags (test.test_gdb.PrettyPrintTests) Ensure that a PyObject* with a type with corrupt tp_flags is handled ... ok test_corrupt_tp_name (test.test_gdb.PrettyPrintTests) Ensure that a PyObject* with a type with corrupt tp_name is handled ... ok test_dicts (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of dictionaries ... ok test_exceptions (test.test_gdb.PrettyPrintTests) ... FAIL test_frames (test.test_gdb.PrettyPrintTests) ... ok test_frozensets (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of frozensets ... ok test_getting_backtrace (test.test_gdb.PrettyPrintTests) ... ok test_int (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of various "int" values ... ok test_lists (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of lists ... ok test_long (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of various "long" values ... ok test_modern_class (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of new-style class instances ... ok test_selfreferential_dict (test.test_gdb.PrettyPrintTests) Ensure that a reference loop involving a dict doesn't lead proxyval ... ok test_selfreferential_list (test.test_gdb.PrettyPrintTests) Ensure that a reference loop involving a list doesn't lead proxyval ... ok test_selfreferential_new_style_instance (test.test_gdb.PrettyPrintTests) ... FAIL test_selfreferential_old_style_instance (test.test_gdb.PrettyPrintTests) ... ok test_sets (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of sets ... ok test_singletons (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of True, False and None ... ok 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 ... ok test_subclassing_tuple (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of an instance of a tuple subclass ... ok test_truncation (test.test_gdb.PrettyPrintTests) Verify that very long output is truncated ... ok test_tuples (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of tuples ... ok test_unicode (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of unicode values ... ok ====================================================================== FAIL: test_builtin_method (test.test_gdb.PrettyPrintTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/ncoghlan/devel/python/Lib/test/test_gdb.py", line 489, in test_builtin_method (gdb_repr, gdb_output)) AssertionError: Unexpected gdb representation: '\n ' Breakpoint 1 at 0x453410: file Objects/object.c, line 330. [Thread debugging using libthread_db enabled] Breakpoint 1, PyObject_Print (op= , fp= 0x7ffff7532780, flags=1) at Objects/object.c:330 330 return internal_print(op, fp, flags, 0); #0 PyObject_Print (op= , fp= 0x7ffff7532780, flags=1) at Objects/object.c:330 #1 0x0000000000430059 in file_PyObject_Print (v= , f= , flags=1) at Objects/fileobject.c:110 #2 PyFile_WriteObject (v= , f= , flags=1) at Objects/fileobject.c:2470 #3 0x00000000004a55aa in PyEval_EvalFrameEx (f= Frame 0x8185a0, for file , line 1, in (), throwflag=) at Python/ceval.c:1769 #4 0x00000000004a8a9c in PyEval_EvalCodeEx (co=0x7ffff7fb4830, globals=, locals=, args=0x0, argcount=-134741446, kws=, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3253 #5 0x00000000004a8ba2 in PyEval_EvalCode (co=0x7ffff7f77a28, globals= , locals=) at Python/ceval.c:666 #6 0x00000000004c7f1f in run_mod (command=, flags=) at Python/pythonrun.c:1340 #7 PyRun_StringFlags (command=, flags=) at Python/pythonrun.c:1303 #8 PyRun_SimpleStringFlags (command=, flags=) at Python/pythonrun.c:962 #9 0x0000000000416b06 in Py_Main (argc=1, argv=) at Modules/main.c:525 #10 0x00007ffff71e7abd in __libc_start_main () from /lib/libc.so.6 #11 0x00000000004162b9 in _start () at ../sysdeps/x86_64/elf/start.S:113 ====================================================================== FAIL: test_exceptions (test.test_gdb.PrettyPrintTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/ncoghlan/devel/python/Lib/test/test_gdb.py", line 267, in test_exceptions "exceptions.ZeroDivisionError('integer division or modulo by zero',)") AssertionError: "\n exceptions.ZeroDivisionError('integer division or modulo by zero',)" != "exceptions.ZeroDivisionError('integer division or modulo by zero',)" ====================================================================== FAIL: test_selfreferential_new_style_instance (test.test_gdb.PrettyPrintTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/ncoghlan/devel/python/Lib/test/test_gdb.py", line 450, in test_selfreferential_new_style_instance (gdb_repr, gdb_output)) AssertionError: Unexpected gdb representation: '\n ) at remote 0x7ffff7f7a4d0>) at remote 0x7ffff7f62190>' Breakpoint 1 at 0x453410: file Objects/object.c, line 330. [Thread debugging using libthread_db enabled] Breakpoint 1, PyObject_Print (op= ) at remote 0x7ffff7f7a4d0>) at remote 0x7ffff7f62190>, fp=0x7ffff7532780, flags=1) at Objects/object.c:330 330 return internal_print(op, fp, flags, 0); #0 PyObject_Print (op= ) at remote 0x7ffff7f7a4d0>) at remote 0x7ffff7f62190>, fp=0x7ffff7532780, flags=1) at Objects/object.c:330 #1 0x0000000000430059 in file_PyObject_Print (v= ) at remote 0x7ffff7f7a4d0>) at remote 0x7ffff7f62190>, f=, flags=1) at Objects/fileobject.c:110 #2 PyFile_WriteObject (v= ) at remote 0x7ffff7f7a4d0>) at remote 0x7ffff7f62190>, f=, flags=1) at Objects/fileobject.c:2470 #3 0x00000000004a55aa in PyEval_EvalFrameEx (f= Frame 0x819110, for file , line 8, in (), throwflag=) at Python/ceval.c:1769 #4 0x00000000004a8a9c in PyEval_EvalCodeEx (co=0x7ffff7fb4bb0, globals=, locals=, args=0x0, argcount=-134741398, kws=, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3253 #5 0x00000000004a8ba2 in PyEval_EvalCode (co=0x7ffff7f62190, globals= , locals=) at Python/ceval.c:666 #6 0x00000000004c7f1f in run_mod (command=, flags=) at Python/pythonrun.c:1340 #7 PyRun_StringFlags (command=, flags=) at Python/pythonrun.c:1303 #8 PyRun_SimpleStringFlags (command=, flags=) at Python/pythonrun.c:962 #9 0x0000000000416b06 in Py_Main (argc=1, argv=) at Modules/main.c:525 #10 0x00007ffff71e7abd in __libc_start_main () from /lib/libc.so.6 #11 0x00000000004162b9 in _start () at ../sysdeps/x86_64/elf/start.S:113 ====================================================================== FAIL: test_strings (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of strings ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/ncoghlan/devel/python/Lib/test/test_gdb.py", line 191, in test_strings self.assertGdbRepr('string with embedded NUL here \0 and then some more text') File "/home/ncoghlan/devel/python/Lib/test/test_gdb.py", line 153, in assertGdbRepr self.assertEquals(gdb_repr, repr(val), gdb_output) AssertionError: Breakpoint 1 at 0x453410: file Objects/object.c, line 330. [Thread debugging using libthread_db enabled] Breakpoint 1, PyObject_Print (op= 'string with embedded NUL here \x00 and then some more text', fp= 0x7ffff7532780, flags=1) at Objects/object.c:330 330 return internal_print(op, fp, flags, 0); #0 PyObject_Print (op= 'string with embedded NUL here \x00 and then some more text', fp= 0x7ffff7532780, flags=1) at Objects/object.c:330 #1 0x0000000000430059 in file_PyObject_Print (v= 'string with embedded NUL here \x00 and then some more text', f= , flags=1) at Objects/fileobject.c:110 #2 PyFile_WriteObject (v= 'string with embedded NUL here \x00 and then some more text', f= , flags=1) at Objects/fileobject.c:2470 #3 0x00000000004a55aa in PyEval_EvalFrameEx (f= Frame 0x8185c0, for file , line 1, in (), throwflag=) at Python/ceval.c:1769 #4 0x00000000004a8a9c in PyEval_EvalCodeEx (co=0x7ffff7fb4830, globals=, locals=, args=0x0, argcount=-134741446, kws=, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3253 #5 0x00000000004a8ba2 in PyEval_EvalCode (co=0x7ffff7f6a5d0, globals= , locals=) at Python/ceval.c:666 #6 0x00000000004c7f1f in run_mod (command=, flags=) at Python/pythonrun.c:1340 #7 PyRun_StringFlags (command=, flags=) at Python/pythonrun.c:1303 #8 PyRun_SimpleStringFlags (command=, flags=) at Python/pythonrun.c:962 #9 0x0000000000416b06 in Py_Main (argc=1, argv=) at Modules/main.c:525 #10 0x00007ffff71e7abd in __libc_start_main () from /lib/libc.so.6 #11 0x00000000004162b9 in _start () at ../sysdeps/x86_64/elf/start.S:113 ---------------------------------------------------------------------- Ran 31 tests in 8.528s FAILED (failures=4) test test_gdb failed -- multiple errors occurred 1 test failed: test_gdb