Unskip tests in test_unicode_file_functions

This commit is contained in:
Padraic Fanning committed 2021-02-25 23:09:27 -05:00
1 parent 628dd2b863
commit 157687e620
1 file changed
+6 -3
+6 -3
View File
@@ -92,7 +92,8 @@ class UnicodeFileTests(unittest.TestCase):
"with bad filename in the exception: %a" %
(fn.__name__, filename, exc_filename))
@unittest.skip("TODO: RUSTPYTHON, AttributeError: 'FileNotFoundError' object has no attribute 'filename'")
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_failures(self):
# Pass non-existing Unicode filenames all over the place.
for name in self.files:
@@ -110,7 +111,8 @@ class UnicodeFileTests(unittest.TestCase):
else:
_listdir_failure = NotADirectoryError
@unittest.skip("TODO: RUSTPYTHON, OSError: Not a directory (os error 20)")
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_open(self):
for name in self.files:
f = open(name, 'wb')
@@ -123,7 +125,8 @@ class UnicodeFileTests(unittest.TestCase):
# NFD (a variant of Unicode NFD form). Normalize the filename to NFC, NFKC,
# NFKD in Python is useless, because darwin will normalize it later and so
# open(), os.stat(), etc. don't raise any exception.
@unittest.skip("TODO: RUSTPYTHON, AttributeError: 'FileNotFoundError' object has no attribute 'filename'")
# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.skipIf(sys.platform == 'darwin', 'irrelevant test on Mac OS X')
def test_normalize(self):
files = set(self.files)