[Python-checkins] r76242 - python/branches/py3k/Lib/unittest/case.py

benjamin.peterson python-checkins at python.org
Fri Nov 13 23:09:10 CET 2009


Author: benjamin.peterson
Date: Fri Nov 13 23:09:10 2009
New Revision: 76242

Log:
use with_traceback correctly

Modified:
   python/branches/py3k/Lib/unittest/case.py

Modified: python/branches/py3k/Lib/unittest/case.py
==============================================================================
--- python/branches/py3k/Lib/unittest/case.py	(original)
+++ python/branches/py3k/Lib/unittest/case.py	Fri Nov 13 23:09:10 2009
@@ -117,8 +117,7 @@
             # let unexpected exceptions pass through
             return False
         #store exception, without traceback, for later retrieval
-        self.exc_value = exc_value
-        self.exc_value.with_traceback(None)
+        self.exc_value = exc_value.with_traceback(None)
         if self.expected_regex is None:
             return True
 


More information about the Python-checkins mailing list