]> granicus.if.org Git - python/commitdiff
Remove test for unicode(e) converted to str(e) by 2to3
authorEzio Melotti <ezio.melotti@gmail.com>
Thu, 24 Dec 2009 22:54:06 +0000 (22:54 +0000)
committerEzio Melotti <ezio.melotti@gmail.com>
Thu, 24 Dec 2009 22:54:06 +0000 (22:54 +0000)
Lib/test/test_exceptions.py

index 89e6ebb27b00c82c3acc5615ec46379637a66cae..404b5d15703265447f1c153e05e14227d5a77092 100644 (file)
@@ -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