Author: Philip Jenvey <[email protected]>
Branch:
Changeset: r59365:f2f4cb496c1c
Date: 2012-12-07 16:13 -0800
http://bitbucket.org/pypy/pypy/changeset/f2f4cb496c1c/
Log: fix test_list_unicode on osx (ported from py3k)
diff --git a/pypy/module/posix/test/test_posix2.py
b/pypy/module/posix/test/test_posix2.py
--- a/pypy/module/posix/test/test_posix2.py
+++ b/pypy/module/posix/test/test_posix2.py
@@ -325,7 +325,11 @@
u = "caf\xe9".decode(sys.getfilesystemencoding())
except UnicodeDecodeError:
# Could not decode, listdir returned the byte string
- assert (str, "caf\xe9") in typed_result
+ if sys.platform != 'darwin':
+ assert (str, "caf\xe9") in typed_result
+ else:
+ # darwin 'normalized' it
+ assert (unicode, 'caf%E9') in typed_result
else:
assert (unicode, u) in typed_result
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit