[pypy-svn] r73839 - pypy/trunk/pypy/interpreter/test
benjamin at codespeak.net
benjamin at codespeak.net
Sat Apr 17 21:10:47 CEST 2010
Author: benjamin
Date: Sat Apr 17 21:10:29 2010
New Revision: 73839
Modified:
pypy/trunk/pypy/interpreter/test/test_gateway.py
Log:
fix for when file system encoding is horrible (like ascii)
Modified: pypy/trunk/pypy/interpreter/test/test_gateway.py
==============================================================================
--- pypy/trunk/pypy/interpreter/test/test_gateway.py (original)
+++ pypy/trunk/pypy/interpreter/test/test_gateway.py Sat Apr 17 21:10:29 2010
@@ -454,13 +454,14 @@
assert len(l) == 1
assert space.eq_w(l[0], w("foo"))
- def test_interp2app_unwrap_spec_path(self):
+ def test_interp2app_unwrap_spec_path(self, monkeypatch):
space = self.space
def g(space, p):
return p
app_g = gateway.interp2app(g, unwrap_spec=[gateway.ObjSpace, 'path'])
w_app_g = space.wrap(app_g)
+ monkeypatch.setattr(space.sys, "filesystemencoding", "utf-8")
w_res = space.call_function(w_app_g, space.wrap(u"ą"))
def test_interp2app_classmethod(self):
More information about the Pypy-commit
mailing list