Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_exceptions.py @ 57930:9628eb7e98df 3.1
Merged revisions 77047 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r77047 | ezio.melotti | 2009-12-25 00:54:06 +0200 (Fri, 25 Dec 2009) | 1 line
Remove test for unicode(e) converted to str(e) by 2to3
........
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Thu, 24 Dec 2009 22:56:20 +0000 |
| parents | 0bb232078b8c |
| children | c8ef906b11b8 c1972eef3579 |
line wrap: on
line diff
--- a/Lib/test/test_exceptions.py Thu Dec 24 16:15:31 2009 +0000 +++ b/Lib/test/test_exceptions.py Thu Dec 24 22:56:20 2009 +0000 @@ -399,13 +399,11 @@ return -1 self.assertRaises(RuntimeError, g) - def testUnicodeStrUsage(self): - # Make sure both instances and classes have a str and unicode - # representation. - self.assertTrue(str(Exception)) + def test_str(self): + # Make sure both instances and classes have a str representation. 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
