[pypy-commit] pypy stdlib-3.2.5: exact error messages are an impl detail. we may revisit these in 3.4, when
pjenvey
noreply at buildbot.pypy.org
Wed Apr 2 20:06:10 CEST 2014
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: stdlib-3.2.5
Changeset: r70401:fb6aa1ffe82b
Date: 2014-04-01 16:43 -0700
http://bitbucket.org/pypy/pypy/changeset/fb6aa1ffe82b/
Log: exact error messages are an impl detail. we may revisit these in
3.4, when cpython changes many of these messages, anyway
diff --git a/lib-python/3/test/test_io.py b/lib-python/3/test/test_io.py
--- a/lib-python/3/test/test_io.py
+++ b/lib-python/3/test/test_io.py
@@ -1041,7 +1041,7 @@
def test_args_error(self):
# Issue #17275
- with self.assertRaisesRegex(TypeError, "BufferedReader"):
+ with self.assertRaisesRegex(TypeError, "__init__()"):
self.tp(io.BytesIO(), 1024, 1024, 1024)
@@ -1329,7 +1329,7 @@
def test_args_error(self):
# Issue #17275
- with self.assertRaisesRegex(TypeError, "BufferedWriter"):
+ with self.assertRaisesRegex(TypeError, "__init__()"):
self.tp(io.BytesIO(), 1024, 1024, 1024)
@@ -1705,7 +1705,7 @@
def test_args_error(self):
# Issue #17275
- with self.assertRaisesRegex(TypeError, "BufferedRandom"):
+ with self.assertRaisesRegex(TypeError, "__init__()"):
self.tp(io.BytesIO(), 1024, 1024, 1024)
More information about the pypy-commit
mailing list