[Python-checkins] r77047 - python/branches/py3k/Lib/test/test_exceptions.py
ezio.melotti
python-checkins at python.org
Thu Dec 24 23:54:06 CET 2009
Author: ezio.melotti
Date: Thu Dec 24 23:54:06 2009
New Revision: 77047
Log:
Remove test for unicode(e) converted to str(e) by 2to3
Modified:
python/branches/py3k/Lib/test/test_exceptions.py
Modified: python/branches/py3k/Lib/test/test_exceptions.py
==============================================================================
--- python/branches/py3k/Lib/test/test_exceptions.py (original)
+++ python/branches/py3k/Lib/test/test_exceptions.py Thu Dec 24 23:54:06 2009
@@ -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.
+ 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
More information about the Python-checkins
mailing list