Kaydet (Commit) dfb2a8a7 authored tarafından Brett Cannon's avatar Brett Cannon

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

needlessly.
üst e36f2ba7
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment