Author: Philip Jenvey <pjen...@underboss.org> Branch: py3k Changeset: r71680:d4e74c26a617 Date: 2014-05-22 16:41 -0700 http://bitbucket.org/pypy/pypy/changeset/d4e74c26a617/
Log: skip when the fsencoding can't handle this filename diff --git a/pypy/module/_io/test/test_fileio.py b/pypy/module/_io/test/test_fileio.py --- a/pypy/module/_io/test/test_fileio.py +++ b/pypy/module/_io/test/test_fileio.py @@ -60,6 +60,12 @@ import _io import os path = os.path.join(self.tmpdir, '_pypy-日本') + try: + os.fsencode(path) + except UnicodeEncodeError: + import sys + skip("can't run this test with %s as filesystem encoding" % + sys.getfilesystemencoding()) exc = raises(IOError, _io.FileIO, path) expected = "[Errno 2] No such file or directory: %r" % path assert str(exc.value) == expected _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit