[pypy-commit] pypy py3.3: Fix test_open_default_encoding in lib-python/3/test/test_builtin.py.
kvas
noreply at buildbot.pypy.org
Sun Aug 3 21:58:20 CEST 2014
Author: Vasily Kuznetsov <kvas.it at gmail.com>
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):
More information about the pypy-commit
mailing list