Fix a broken test in test_traceback where the module name was being tacked on
needlessly.
This commit is contained in:
parent
e36f2ba7c4
commit
dfb2a8a7c1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue