== CPython 3.2a0 (py3k:80297, Apr 21 2010, 07:34:04) [GCC 4.4.3 20100108 (prerelease)] == Linux-2.6.32-3-amd64-x86_64-with-debian-squeeze-sid == /home/martin/work/3k/build/test_python_26962 test_gdb 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_method (test.test_gdb.PrettyPrintTests) ... ok test_builtins_help (test.test_gdb.PrettyPrintTests) Ensure that the new-style class _Helper in site.py can be handled ... ok test_bytes (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of bytes ... 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) ... ok 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"/long values ... ok test_lists (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of lists ... 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) ... ok 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 unicode strings ... ok 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_basic_command (test.test_gdb.PyListTests) Verify that the "py-list" command works ... FAIL test_one_abs_arg (test.test_gdb.PyListTests) Verify the "py-list" command with one absolute argument ... FAIL test_two_abs_args (test.test_gdb.PyListTests) Verify the "py-list" command with two absolute arguments ... FAIL 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 ... FAIL test_basic_command (test.test_gdb.PyPrintTests) Verify that the "py-print" command works ... FAIL test_print_after_up (test.test_gdb.PyPrintTests) ... skipped 'test requires py-up/py-down commands' test_printing_builtin (test.test_gdb.PyPrintTests) ... FAIL test_printing_global (test.test_gdb.PyPrintTests) ... FAIL test_basic_command (test.test_gdb.PyLocalsTests) ... FAIL test_locals_after_up (test.test_gdb.PyLocalsTests) ... skipped 'test requires py-up/py-down commands' ====================================================================== FAIL: test_basic_command (test.test_gdb.PyListTests) Verify that the "py-list" command works ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/martin/work/3k/Lib/test/test_gdb.py", line 536, in test_basic_command bt) File "/home/martin/work/3k/Lib/test/test_gdb.py", line 521, in assertListing self.assertEndsWith(actual, expected) File "/home/martin/work/3k/Lib/test/test_gdb.py", line 157, in assertEndsWith msg='%r did not end with %r' % (actual, exp_end)) AssertionError: '\x1b[?1034hBreakpoint 1 at 0x458bd0: file Python/bltinmodule.c, line 912.\n[Thread debugging using libthread_db enabled]\n\nBreakpoint 1, builtin_id (self=, v=42) at Python/bltinmodule.c:912\n912\t\treturn PyLong_FromVoidPtr(v);\nUnable to read information on python frame\n' did not end with ' 5 \n 6 def bar(a, b, c):\n 7 baz(a, b, c)\n 8 \n 9 def baz(*args):\n>10 id(42)\n 11 \n 12 foo(1, 2, 3)\n' ====================================================================== FAIL: test_one_abs_arg (test.test_gdb.PyListTests) Verify the "py-list" command with one absolute argument ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/martin/work/3k/Lib/test/test_gdb.py", line 547, in test_one_abs_arg bt) File "/home/martin/work/3k/Lib/test/test_gdb.py", line 521, in assertListing self.assertEndsWith(actual, expected) File "/home/martin/work/3k/Lib/test/test_gdb.py", line 157, in assertEndsWith msg='%r did not end with %r' % (actual, exp_end)) AssertionError: '\x1b[?1034hBreakpoint 1 at 0x458bd0: file Python/bltinmodule.c, line 912.\n[Thread debugging using libthread_db enabled]\n\nBreakpoint 1, builtin_id (self=, v=42) at Python/bltinmodule.c:912\n912\t\treturn PyLong_FromVoidPtr(v);\nUnable to read information on python frame\n' did not end with ' 9 def baz(*args):\n>10 id(42)\n 11 \n 12 foo(1, 2, 3)\n' ====================================================================== FAIL: test_two_abs_args (test.test_gdb.PyListTests) Verify the "py-list" command with two absolute arguments ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/martin/work/3k/Lib/test/test_gdb.py", line 557, in test_two_abs_args bt) File "/home/martin/work/3k/Lib/test/test_gdb.py", line 521, in assertListing self.assertEndsWith(actual, expected) File "/home/martin/work/3k/Lib/test/test_gdb.py", line 157, in assertEndsWith msg='%r did not end with %r' % (actual, exp_end)) AssertionError: '\x1b[?1034hBreakpoint 1 at 0x458bd0: file Python/bltinmodule.c, line 912.\n[Thread debugging using libthread_db enabled]\n\nBreakpoint 1, builtin_id (self=, v=42) at Python/bltinmodule.c:912\n912\t\treturn PyLong_FromVoidPtr(v);\nUnable to read information on python frame\n' did not end with ' 1 # Sample script for use by test_gdb.py\n 2 \n 3 def foo(a, b, c):\n' ====================================================================== FAIL: test_basic_command (test.test_gdb.PyBtTests) Verify that the "py-bt" command works ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/martin/work/3k/Lib/test/test_gdb.py", line 613, in test_basic_command ''') File "/home/martin/work/3k/Lib/test/test_gdb.py", line 162, in assertMultilineMatches self.fail(msg='%r did not match %r' % (actual, pattern)) AssertionError: '\x1b[?1034hBreakpoint 1 at 0x458bd0: file Python/bltinmodule.c, line 912.\n[Thread debugging using libthread_db enabled]\n\nBreakpoint 1, builtin_id (self=, v=42) at Python/bltinmodule.c:912\n912\t\treturn PyLong_FromVoidPtr(v);\n#2 (unable to read python frame information)\n#6 (unable to read python frame information)\n#9 Frame 0x872810, for file /home/martin/work/3k/Lib/test/gdb_sample.py, line 7, in bar (a=1, b=2, c=3)\n baz(a, b, c)\n#12 Frame 0x872630, for file /home/martin/work/3k/Lib/test/gdb_sample.py, line 4, in foo (a=1, b=2, c=3)\n bar(a, b, c)\n' did not match '^.*\n#[0-9]+ Frame 0x[0-9a-f]+, for file .*gdb_sample.py, line 7, in bar \\(a=1, b=2, c=3\\)\n baz\\(a, b, c\\)\n#[0-9]+ Frame 0x[0-9a-f]+, for file .*gdb_sample.py, line 4, in foo \\(a=1, b=2, c=3\\)\n bar\\(a, b, c\\)\n#[0-9]+ Frame 0x[0-9a-f]+, for file .*gdb_sample.py, line 12, in \\(\\)\nfoo\\(1, 2, 3\\)\n' ====================================================================== FAIL: test_basic_command (test.test_gdb.PyPrintTests) Verify that the "py-print" command works ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/martin/work/3k/Lib/test/test_gdb.py", line 621, in test_basic_command r".*\nlocal 'args' = \(1, 2, 3\)\n.*") File "/home/martin/work/3k/Lib/test/test_gdb.py", line 162, in assertMultilineMatches self.fail(msg='%r did not match %r' % (actual, pattern)) AssertionError: '\x1b[?1034hBreakpoint 1 at 0x458bd0: file Python/bltinmodule.c, line 912.\n[Thread debugging using libthread_db enabled]\n\nBreakpoint 1, builtin_id (self=, v=42) at Python/bltinmodule.c:912\n912\t\treturn PyLong_FromVoidPtr(v);\nUnable to read information on python frame\n' did not match ".*\\nlocal 'args' = \\(1, 2, 3\\)\\n.*" ====================================================================== FAIL: test_printing_builtin (test.test_gdb.PyPrintTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/martin/work/3k/Lib/test/test_gdb.py", line 640, in test_printing_builtin r".*\nbuiltin 'len' = \n.*") File "/home/martin/work/3k/Lib/test/test_gdb.py", line 162, in assertMultilineMatches self.fail(msg='%r did not match %r' % (actual, pattern)) AssertionError: '\x1b[?1034hBreakpoint 1 at 0x458bd0: file Python/bltinmodule.c, line 912.\n[Thread debugging using libthread_db enabled]\n\nBreakpoint 1, builtin_id (self=, v=42) at Python/bltinmodule.c:912\n912\t\treturn PyLong_FromVoidPtr(v);\nUnable to read information on python frame\n' did not match ".*\\nbuiltin 'len' = \\n.*" ====================================================================== FAIL: test_printing_global (test.test_gdb.PyPrintTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/martin/work/3k/Lib/test/test_gdb.py", line 634, in test_printing_global r".*\nglobal '__name__' = '__main__'\n.*") File "/home/martin/work/3k/Lib/test/test_gdb.py", line 162, in assertMultilineMatches self.fail(msg='%r did not match %r' % (actual, pattern)) AssertionError: '\x1b[?1034hBreakpoint 1 at 0x458bd0: file Python/bltinmodule.c, line 912.\n[Thread debugging using libthread_db enabled]\n\nBreakpoint 1, builtin_id (self=, v=42) at Python/bltinmodule.c:912\n912\t\treturn PyLong_FromVoidPtr(v);\nUnable to read information on python frame\n' did not match ".*\\nglobal '__name__' = '__main__'\\n.*" ====================================================================== FAIL: test_basic_command (test.test_gdb.PyLocalsTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/martin/work/3k/Lib/test/test_gdb.py", line 647, in test_basic_command r".*\nargs = \(1, 2, 3\)\n.*") File "/home/martin/work/3k/Lib/test/test_gdb.py", line 162, in assertMultilineMatches self.fail(msg='%r did not match %r' % (actual, pattern)) AssertionError: '\x1b[?1034hBreakpoint 1 at 0x458bd0: file Python/bltinmodule.c, line 912.\n[Thread debugging using libthread_db enabled]\n\nBreakpoint 1, builtin_id (self=, v=42) at Python/bltinmodule.c:912\n912\t\treturn PyLong_FromVoidPtr(v);\nUnable to read information on python frame\n' did not match '.*\\nargs = \\(1, 2, 3\\)\\n.*' ---------------------------------------------------------------------- Ran 41 tests in 5.205s FAILED (failures=8, skipped=6) test test_gdb failed -- multiple errors occurred 1 test failed: test_gdb

AltStyle によって変換されたページ (->オリジナル) /