Author: Amaury Forgeot d'Arc <[email protected]>
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(
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit