Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r61432:b8b7efb9610e
Date: 2013-02-18 15:56 -0800
http://bitbucket.org/pypy/pypy/changeset/b8b7efb9610e/
Log: fix test_getfilesystemencoding, expect the canonical name
diff --git a/pypy/module/sys/test/test_sysmodule.py
b/pypy/module/sys/test/test_sysmodule.py
--- a/pypy/module/sys/test/test_sysmodule.py
+++ b/pypy/module/sys/test/test_sysmodule.py
@@ -1,4 +1,5 @@
# -*- coding: iso-8859-1 -*-
+import codecs
import sys
def test_stdin_exists(space):
@@ -13,7 +14,8 @@
def setup_class(cls):
cls.w_appdirect = cls.space.wrap(cls.runappdirect)
- cls.w_filesystemenc = cls.space.wrap(sys.getfilesystemencoding())
+ filesystemenc = codecs.lookup(sys.getfilesystemencoding()).name
+ cls.w_filesystemenc = cls.space.wrap(filesystemenc)
def test_sys_in_modules(self):
import sys
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit