Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r62059:cf8585694389
Date: 2013-03-04 22:49 -0800
http://bitbucket.org/pypy/pypy/changeset/cf8585694389/

Log:    fix 73738029fbf6

diff --git a/lib-python/3/test/string_tests.py 
b/lib-python/3/test/string_tests.py
--- a/lib-python/3/test/string_tests.py
+++ b/lib-python/3/test/string_tests.py
@@ -1060,7 +1060,7 @@
         self.checkequal('abc', 'abc', '__mul__', 1)
         self.checkequal('abcabcabc', 'abc', '__mul__', 3)
         self.checkraises(TypeError, 'abc', '__mul__')
-        self.checkraises(TypeError, operator.mul, 'abc', '')
+        self.assertRaises(TypeError, operator.mul, 'abc', '')
         # XXX: on a 64-bit system, this doesn't raise an overflow error,
         # but either raises a MemoryError, or succeeds (if you have 54TiB)
         #self.checkraises(OverflowError, 10000*'abc', '__mul__', 2000000000)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to