Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r58936:1a3c85bd9228
Date: 2012-11-15 23:42 +0100
http://bitbucket.org/pypy/pypy/changeset/1a3c85bd9228/
Log: One more implementation detail in test_multibytecodec
diff --git a/lib-python/3.2/test/test_multibytecodec_support.py
b/lib-python/3.2/test/test_multibytecodec_support.py
--- a/lib-python/3.2/test/test_multibytecodec_support.py
+++ b/lib-python/3.2/test/test_multibytecodec_support.py
@@ -127,8 +127,8 @@
def myreplace(exc):
return ('x', sys.maxsize + 1)
codecs.register_error("test.cjktest", myreplace)
- self.assertRaises(IndexError, self.encode, self.unmappedunicode,
- 'test.cjktest')
+ self.assertRaises((IndexError, OverflowError), self.encode,
+ self.unmappedunicode, 'test.cjktest')
def test_callback_None_index(self):
def myreplace(exc):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit