Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r89803:54bb0a810cd2
Date: 2017-01-27 18:20 +0100
http://bitbucket.org/pypy/pypy/changeset/54bb0a810cd2/
Log: py3.5 fix: needs a bytes in the middle of this wrapped tuple
diff --git a/pypy/interpreter/test/test_error.py
b/pypy/interpreter/test/test_error.py
--- a/pypy/interpreter/test/test_error.py
+++ b/pypy/interpreter/test/test_error.py
@@ -104,7 +104,12 @@
space.newtuple([space.wrap(6), space.wrap(7)]))
assert operr.errorstr(space) == "ValueError: (6, 7)"
operr = OperationError(space.w_UnicodeDecodeError,
- space.wrap(('unicodeescape', r'\\x', 0, 2, r'truncated \\xXX escape')))
+ space.newtuple([
+ space.wrap('unicodeescape'),
+ space.newbytes(r'\\x'),
+ space.newint(0),
+ space.newint(2),
+ space.wrap(r'truncated \\xXX escape')]))
assert operr.errorstr(space) == (
"UnicodeDecodeError: 'unicodeescape' codec can't decode "
"bytes in position 0-1: truncated \\\\xXX escape")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit