Commits

Philip Jenvey committed f2f4cb4

fix test_list_unicode on osx (ported from py3k)

Comments (0)

Files changed (1)

pypy/module/posix/test/test_posix2.py

             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