summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_traceback.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_traceback.py b/Lib/test/test_traceback.py
index 9c7af70..51fb9e6 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 = '<unprintable %s object>' % 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)