mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Mark erroring/failing tests on Windows
This commit is contained in:
1 parent
e850b6e041
commit
7d8dc183d8
1 file changed
+16
Vendored
+16
@@ -280,6 +280,10 @@ class TestNtpath(NtpathTestCase):
|
||||
self.assertRaises(FileNotFoundError, ntpath.realpath, ABSTFN, strict=True)
|
||||
self.assertRaises(FileNotFoundError, ntpath.realpath, ABSTFN + "2", strict=True)
|
||||
|
||||
# TODO: RUSTPYTHON, TypeError: got an unexpected keyword argument 'strict'
|
||||
if sys.platform == "win32":
|
||||
test_realpath_strict = unittest.expectedFailure(test_realpath_strict)
|
||||
|
||||
@os_helper.skip_unless_symlink
|
||||
@unittest.skipUnless(HAVE_GETFINALPATHNAME, 'need _getfinalpathname')
|
||||
def test_realpath_relative(self):
|
||||
@@ -442,6 +446,10 @@ class TestNtpath(NtpathTestCase):
|
||||
self.assertRaises(OSError, ntpath.realpath, ntpath.basename(ABSTFN),
|
||||
strict=True)
|
||||
|
||||
# TODO: RUSTPYTHON, FileExistsError: [Errno 183] Cannot create a file when that file already exists. (os error 183): 'None' -> 'None'
|
||||
if sys.platform == "win32":
|
||||
test_realpath_symlink_loops_strict = unittest.expectedFailure(test_realpath_symlink_loops_strict)
|
||||
|
||||
@os_helper.skip_unless_symlink
|
||||
@unittest.skipUnless(HAVE_GETFINALPATHNAME, 'need _getfinalpathname')
|
||||
def test_realpath_symlink_prefix(self):
|
||||
@@ -640,6 +648,10 @@ class TestNtpath(NtpathTestCase):
|
||||
tester('ntpath.relpath("/a/b", "/a/b")', '.')
|
||||
tester('ntpath.relpath("c:/foo", "C:/FOO")', '.')
|
||||
|
||||
# TODO: RUSTPYTHON, FileExistsError: [Errno 183] Cannot create a file when that file already exists. (os error 183): 'None' -> 'None'
|
||||
if sys.platform == "win32":
|
||||
test_relpath = unittest.expectedFailure(test_relpath)
|
||||
|
||||
def test_commonpath(self):
|
||||
def check(paths, expected):
|
||||
tester(('ntpath.commonpath(%r)' % paths).replace('\\\\', '\\'),
|
||||
@@ -849,6 +861,10 @@ class PathLikeTests(NtpathTestCase):
|
||||
if sys.platform == 'win32':
|
||||
self.assertEqual(ntpath.normcase('\u03a9\u2126'), 'ωΩ')
|
||||
|
||||
# TODO: RUSTPYTHON, AssertionError: 'ωω' != 'ωΩ'
|
||||
if sys.platform == "win32":
|
||||
test_path_normcase = unittest.expectedFailure(test_path_normcase)
|
||||
|
||||
def test_path_isabs(self):
|
||||
self._check_function(self.path.isabs)
|
||||
|
||||
|
||||
Reference in new issue
Block a user