mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Remove test for unicode(e) converted to str(e) by 2to3
This commit is contained in:
parent
8ae535bac7
commit
2f5a78c5fd
1 changed files with 3 additions and 5 deletions
|
@ -399,13 +399,11 @@ class ExceptionTests(unittest.TestCase):
|
||||||
return -1
|
return -1
|
||||||
self.assertRaises(RuntimeError, g)
|
self.assertRaises(RuntimeError, g)
|
||||||
|
|
||||||
def testUnicodeStrUsage(self):
|
def test_str(self):
|
||||||
# Make sure both instances and classes have a str and unicode
|
# Make sure both instances and classes have a str representation.
|
||||||
# representation.
|
|
||||||
self.assertTrue(str(Exception))
|
|
||||||
self.assertTrue(str(Exception))
|
self.assertTrue(str(Exception))
|
||||||
self.assertTrue(str(Exception('a')))
|
self.assertTrue(str(Exception('a')))
|
||||||
self.assertTrue(str(Exception('a')))
|
self.assertTrue(str(Exception('a', 'b')))
|
||||||
|
|
||||||
def testExceptionCleanupNames(self):
|
def testExceptionCleanupNames(self):
|
||||||
# Make sure the local variable bound to the exception instance by
|
# Make sure the local variable bound to the exception instance by
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue