summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2009-12-24 22:54:06 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2009-12-24 22:54:06 (GMT)
commit2f5a78c5fd062240bc1ca39d9c0f7b52280f21f7 (patch)
treecd781d63ff823b0004d5a217781ece95b956a3a2 /Lib/test/test_exceptions.py
parent8ae535bac712dc766116caf43695ee63974e95ce (diff)
downloadcpython-2f5a78c5fd062240bc1ca39d9c0f7b52280f21f7.zip
cpython-2f5a78c5fd062240bc1ca39d9c0f7b52280f21f7.tar.gz
cpython-2f5a78c5fd062240bc1ca39d9c0f7b52280f21f7.tar.bz2
Remove test for unicode(e) converted to str(e) by 2to3
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 89e6ebb..404b5d1 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -399,13 +399,11 @@ class ExceptionTests(unittest.TestCase):
return -1
self.assertRaises(RuntimeError, g)
- def testUnicodeStrUsage(self):
- # Make sure both instances and classes have a str and unicode
- # representation.
+ def test_str(self):
+ # Make sure both instances and classes have a str representation.
self.assertTrue(str(Exception))
- self.assertTrue(str(Exception))
- self.assertTrue(str(Exception('a')))
self.assertTrue(str(Exception('a')))
+ self.assertTrue(str(Exception('a', 'b')))
def testExceptionCleanupNames(self):
# Make sure the local variable bound to the exception instance by