Author: Vasily Kuznetsov <[email protected]>
Branch: py3.3
Changeset: r72681:bd4891f611bd
Date: 2014-08-02 15:49 +0200
http://bitbucket.org/pypy/pypy/changeset/bd4891f611bd/
Log: Fix test_open_default_encoding in lib-python/3/test/test_builtin.py.
diff --git a/pypy/module/_io/interp_textio.py b/pypy/module/_io/interp_textio.py
--- a/pypy/module/_io/interp_textio.py
+++ b/pypy/module/_io/interp_textio.py
@@ -287,7 +287,8 @@
try:
w_locale = space.call_method(space.builtin, '__import__',
space.wrap('locale'))
- w_encoding = space.call_method(w_locale, 'getpreferredencoding')
+ w_encoding = space.call_method(w_locale, 'getpreferredencoding',
+ space.w_False)
except OperationError as e:
# getpreferredencoding() may also raise ImportError
if not e.match(space, space.w_ImportError):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit