Skip to content

Instantly share code, notes, and snippets.

@vsajip
Created October 9, 2010 11:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vsajip/618117 to your computer and use it in GitHub Desktop.
Save vsajip/618117 to your computer and use it in GitHub Desktop.
vinay@eta-jaunty:~/projects/python/branches/py3k/Lib/test$ python3.2 regrtest.py -v test_traceback
== CPython 3.2a2+ (py3k:85322:85340M, Oct 9 2010, 12:36:43) [GCC 4.3.3]
== Linux-2.6.28-19-generic-i686-with-debian-5.0 little-endian
== /home/vinay/projects/python/branches/py3k/Lib/test/build/test_python_21548
[1/1] test_traceback
test_cause (test.test_traceback.CExcReportingTests) ... ok
test_cause_and_context (test.test_traceback.CExcReportingTests) ... ok
test_cause_recursive (test.test_traceback.CExcReportingTests) ... ok
test_context (test.test_traceback.CExcReportingTests) ... ok
test_simple (test.test_traceback.CExcReportingTests) ... ok
test_full_traceback_chained_is_full (test.test_traceback.FormatTracebackContentTests) ... FAIL
test_full_traceback_is_full (test.test_traceback.FormatTracebackContentTests) ... FAIL
test_top_level_full_traceback_is_full (test.test_traceback.FormatTracebackContentTests) ... FAIL
test_full_traceback_chained_is_full (test.test_traceback.PrintTracebackContentTests) ... FAIL
test_full_traceback_is_full (test.test_traceback.PrintTracebackContentTests) ... FAIL
test_top_level_full_traceback_is_full (test.test_traceback.PrintTracebackContentTests) ... FAIL
test_cause (test.test_traceback.PyExcReportingTests) ... ok
test_cause_and_context (test.test_traceback.PyExcReportingTests) ... ok
test_cause_recursive (test.test_traceback.PyExcReportingTests) ... ok
test_context (test.test_traceback.PyExcReportingTests) ... ok
test_simple (test.test_traceback.PyExcReportingTests) ... ok
test_bad_indentation (test.test_traceback.SyntaxTracebackCases) ... ok
test_base_exception (test.test_traceback.SyntaxTracebackCases) ... ok
test_caret (test.test_traceback.SyntaxTracebackCases) ... ok
test_encoded_file (test.test_traceback.SyntaxTracebackCases) ... ok
test_format_exception_only_bad__str__ (test.test_traceback.SyntaxTracebackCases) ... ok
test_nocaret (test.test_traceback.SyntaxTracebackCases) ... ok
test_without_exception (test.test_traceback.SyntaxTracebackCases) ... ok
test_traceback_format (test.test_traceback.TracebackFormatTests) ... ok
======================================================================
FAIL: test_full_traceback_chained_is_full (test.test_traceback.FormatTracebackContentTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vinay/projects/python/branches/py3k/Lib/test/test_traceback.py", line 253, in test_full_traceback_chained_is_full
"""))
File "/home/vinay/projects/python/branches/py3k/Lib/test/test_traceback.py", line 167, in _do_test
exception_action=self.exception_action))
AssertionError: 'Traceback (most recent call last):\n File "testmod.py", line 16, in <module>\n [truncated]... != 'Traceback (most recent call last):\n File "testmod.py", line 16, in <module>\n [truncated]...
Traceback (most recent call last):
File "testmod.py", line 16, in <module>
print(''.join(traceback.format_exception(*sys.exc_info(), allframes=True)), end='', file=sys.stderr)
File "testmod.py", line 6, in foo
bar()
File "testmod.py", line 11, in bar
raise Exception
Exception
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "testmod.py", line 14, in <module>
foo()
File "testmod.py", line 8, in foo
1/0
+ ZeroDivisionError: division by zero
======================================================================
FAIL: test_full_traceback_is_full (test.test_traceback.FormatTracebackContentTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vinay/projects/python/branches/py3k/Lib/test/test_traceback.py", line 195, in test_full_traceback_is_full
"""))
File "/home/vinay/projects/python/branches/py3k/Lib/test/test_traceback.py", line 167, in _do_test
exception_action=self.exception_action))
AssertionError: 'Traceback (most recent call last):\n File "testmod.py", line 13, in <module>\n [truncated]... != 'Traceback (most recent call last):\n File "testmod.py", line 13, in <module>\n [truncated]...
Traceback (most recent call last):
File "testmod.py", line 13, in <module>
upper()
File "testmod.py", line 11, in upper
foo()
File "testmod.py", line 6, in foo
raise Exception
+ Exception
======================================================================
FAIL: test_top_level_full_traceback_is_full (test.test_traceback.FormatTracebackContentTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vinay/projects/python/branches/py3k/Lib/test/test_traceback.py", line 213, in test_top_level_full_traceback_is_full
"""))
File "/home/vinay/projects/python/branches/py3k/Lib/test/test_traceback.py", line 167, in _do_test
exception_action=self.exception_action))
AssertionError: 'Traceback (most recent call last):\n File "testmod.py", line 5, in <module>\n [truncated]... != 'Traceback (most recent call last):\n File "testmod.py", line 5, in <module>\n [truncated]...
Traceback (most recent call last):
File "testmod.py", line 5, in <module>
raise Exception
+ Exception
======================================================================
FAIL: test_full_traceback_chained_is_full (test.test_traceback.PrintTracebackContentTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vinay/projects/python/branches/py3k/Lib/test/test_traceback.py", line 253, in test_full_traceback_chained_is_full
"""))
File "/home/vinay/projects/python/branches/py3k/Lib/test/test_traceback.py", line 167, in _do_test
exception_action=self.exception_action))
AssertionError: 'Traceback (most recent call last):\n File "testmod.py", line 16, in <module>\n [truncated]... != 'Traceback (most recent call last):\n File "testmod.py", line 16, in <module>\n [truncated]...
Traceback (most recent call last):
File "testmod.py", line 16, in <module>
traceback.print_exception(*sys.exc_info(), allframes=True)
File "testmod.py", line 6, in foo
bar()
File "testmod.py", line 11, in bar
raise Exception
Exception
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "testmod.py", line 14, in <module>
foo()
File "testmod.py", line 8, in foo
1/0
+ ZeroDivisionError: division by zero
======================================================================
FAIL: test_full_traceback_is_full (test.test_traceback.PrintTracebackContentTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vinay/projects/python/branches/py3k/Lib/test/test_traceback.py", line 195, in test_full_traceback_is_full
"""))
File "/home/vinay/projects/python/branches/py3k/Lib/test/test_traceback.py", line 167, in _do_test
exception_action=self.exception_action))
AssertionError: 'Traceback (most recent call last):\n File "testmod.py", line 13, in <module>\n [truncated]... != 'Traceback (most recent call last):\n File "testmod.py", line 13, in <module>\n [truncated]...
Traceback (most recent call last):
File "testmod.py", line 13, in <module>
upper()
File "testmod.py", line 11, in upper
foo()
File "testmod.py", line 6, in foo
raise Exception
+ Exception
======================================================================
FAIL: test_top_level_full_traceback_is_full (test.test_traceback.PrintTracebackContentTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vinay/projects/python/branches/py3k/Lib/test/test_traceback.py", line 213, in test_top_level_full_traceback_is_full
"""))
File "/home/vinay/projects/python/branches/py3k/Lib/test/test_traceback.py", line 167, in _do_test
exception_action=self.exception_action))
AssertionError: 'Traceback (most recent call last):\n File "testmod.py", line 5, in <module>\n [truncated]... != 'Traceback (most recent call last):\n File "testmod.py", line 5, in <module>\n [truncated]...
Traceback (most recent call last):
File "testmod.py", line 5, in <module>
raise Exception
+ Exception
----------------------------------------------------------------------
Ran 24 tests in 0.930s
FAILED (failures=6)
test test_traceback failed -- multiple errors occurred
1 test failed:
test_traceback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment