mirror of
https://github.com/python/cpython.git
synced 2026-01-04 06:22:20 +00:00
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
1 changed files with 1 additions and 3 deletions
|
|
@ -118,9 +118,7 @@ def __str__(self):
|
|||
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…
Add table
Add a link
Reference in a new issue