Fix a broken test in test_traceback where the module name was being tacked on

needlessly.
This commit is contained in:
Brett Cannon 2007-02-26 23:33:27 +00:00
parent e36f2ba7c4
commit dfb2a8a7c1
1 changed files with 1 additions and 3 deletions

View File

@ -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)