mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 11:14:38 +08:00
Unskip tests in test_unicode_file_functions
This commit is contained in:
1 file changed
+6
-3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user