From dfb2a8a7c176b4db246a6f32bdf4a1b079bdd4eb Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Mon, 26 Feb 2007 23:33:27 +0000 Subject: [PATCH] Fix a broken test in test_traceback where the module name was being tacked on needlessly. --- Lib/test/test_traceback.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Lib/test/test_traceback.py b/Lib/test/test_traceback.py index 9c7af70ed87..51fb9e64a59 100644 --- a/Lib/test/test_traceback.py +++ b/Lib/test/test_traceback.py @@ -118,9 +118,7 @@ def test(): err = traceback.format_exception_only(X, X()) self.assertEqual(len(err), 1) str_value = '' % X.__name__ - self.assertEqual(err[0], "%s.%s: %s\n" % (X.__module__, - X.__name__, - str_value)) + self.assertEqual(err[0], "%s: %s\n" % ( X.__name__, str_value)) def test_without_exception(self): err = traceback.format_exception_only(None, None)