[pypy-commit] pypy py3k: fix cpython impl detail
pjenvey
noreply at buildbot.pypy.org
Mon Mar 4 22:41:43 CET 2013
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r62022:73738029fbf6
Date: 2013-03-04 13:40 -0800
http://bitbucket.org/pypy/pypy/changeset/73738029fbf6/
Log: fix cpython impl detail
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
@@ -2,6 +2,7 @@
Common tests shared by test_str, test_unicode, test_userstring and test_string.
"""
+import operator
import unittest, string, sys, struct
from test import support
from collections import UserList
@@ -1059,7 +1060,7 @@
self.checkequal('abc', 'abc', '__mul__', 1)
self.checkequal('abcabcabc', 'abc', '__mul__', 3)
self.checkraises(TypeError, 'abc', '__mul__')
- self.checkraises(TypeError, 'abc', '__mul__', '')
+ self.checkraises(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)
More information about the pypy-commit
mailing list