[pypy-commit] pypy py3.5: Fix test. Testing with -A yields the same error.
amauryfa
pypy.commits at gmail.com
Tue Nov 1 12:58:13 EDT 2016
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3.5
Changeset: r88039:82de3e6824df
Date: 2016-11-01 17:50 +0100
http://bitbucket.org/pypy/pypy/changeset/82de3e6824df/
Log: Fix test. Testing with -A yields the same error.
diff --git a/pypy/module/_codecs/test/test_codecs.py b/pypy/module/_codecs/test/test_codecs.py
--- a/pypy/module/_codecs/test/test_codecs.py
+++ b/pypy/module/_codecs/test/test_codecs.py
@@ -50,7 +50,7 @@
]
for s in insecure:
buf = b"S" + s + b"\012p0\012."
- raises (ValueError, pickle.loads, buf)
+ raises ((ValueError, pickle.UnpicklingError), pickle.loads, buf)
def test_unicodedecodeerror(self):
assert str(UnicodeDecodeError(
More information about the pypy-commit
mailing list