summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-02-26 23:33:27 +0000
committerBrett Cannon <bcannon@gmail.com>2007-02-26 23:33:27 +0000
commitdfb2a8a7c176b4db246a6f32bdf4a1b079bdd4eb (patch)
tree2b23024cfae9fb0fd5cf355e6ec86074480fd9bd
parente36f2ba7c478646d3740fc2202b16ce6f1c06483 (diff)
downloadcpython-git-dfb2a8a7c176b4db246a6f32bdf4a1b079bdd4eb.tar.gz
Fix a broken test in test_traceback where the module name was being tacked on
needlessly.
-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 9c7af70ed8..51fb9e64a5 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)