[Python-checkins] r45326 - in python/branches/release24-maint: Lib/test/test_traceback.py Lib/traceback.py Misc/NEWS (original) (raw)

anthony.baxter python-checkins at python.org
Thu Apr 13 03:29:12 CEST 2006


Author: anthony.baxter Date: Thu Apr 13 03:29:10 2006 New Revision: 45326

Modified: python/branches/release24-maint/Lib/test/test_traceback.py python/branches/release24-maint/Lib/traceback.py python/branches/release24-maint/Misc/NEWS Log: reverting r45322 - "traceback.format_exception_only() now prepends the exception's module name to non-builtin exceptions, like the interpreter itself does."

Reverting because: A - broke tests B - changed behaviour of 2.4.

Modified: python/branches/release24-maint/Lib/test/test_traceback.py

--- python/branches/release24-maint/Lib/test/test_traceback.py (original) +++ python/branches/release24-maint/Lib/test/test_traceback.py Thu Apr 13 03:29:10 2006 @@ -5,9 +5,6 @@ import traceback -class TbError(Exception): - pass

class TracebackCases(unittest.TestCase): # For now, a very minimal set of tests. I want to be sure that # formatting of SyntaxErrors works based on changes for 2.1. @@ -88,24 +85,6 @@ os.unlink(os.path.join(testdir, f)) os.rmdir(testdir) - def raise_tberror(self): - raise TbError

Modified: python/branches/release24-maint/Lib/traceback.py

--- python/branches/release24-maint/Lib/traceback.py (original) +++ python/branches/release24-maint/Lib/traceback.py Thu Apr 13 03:29:10 2006 @@ -159,10 +159,6 @@ list = [] if type(etype) == types.ClassType: stype = etype.name

Modified: python/branches/release24-maint/Misc/NEWS

--- python/branches/release24-maint/Misc/NEWS (original) +++ python/branches/release24-maint/Misc/NEWS Thu Apr 13 03:29:10 2006 @@ -23,10 +23,6 @@ Library

-- Patch #860326: traceback.format_exception_only() now prepends the - exception's module name to non-builtin exceptions, like the interpreter - itself does.



More information about the Python-checkins mailing list