Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions Lib/test/test_dtrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,43 @@ class DTraceNormalTests(TraceTests, unittest.TestCase):
backend = DTraceBackend()
optimize_python = 0

@unittest.expectedFailureIfWindows('TODO: RUSTPYTHON')
def test_function_entry_return(self):
return super().test_function_entry_return()

@unittest.expectedFailureIfWindows('TODO: RUSTPYTHON')
def test_verify_call_opcodes(self):
return super().test_verify_call_opcodes()

@unittest.expectedFailureIfWindows('TODO: RUSTPYTHON')
def test_gc(self):
return super().test_gc()

@unittest.expectedFailureIfWindows('TODO: RUSTPYTHON')
def test_line(self):
return super().test_line()


class DTraceOptimizedTests(TraceTests, unittest.TestCase):
backend = DTraceBackend()
optimize_python = 2

@unittest.expectedFailureIfWindows('TODO: RUSTPYTHON')
def test_function_entry_return(self):
return super().test_function_entry_return()

@unittest.expectedFailureIfWindows('TODO: RUSTPYTHON')
def test_verify_call_opcodes(self):
return super().test_verify_call_opcodes()

@unittest.expectedFailureIfWindows('TODO: RUSTPYTHON')
def test_gc(self):
return super().test_gc()

@unittest.expectedFailureIfWindows('TODO: RUSTPYTHON')
def test_line(self):
return super().test_line()


class SystemTapNormalTests(TraceTests, unittest.TestCase):
backend = SystemTapBackend()
Expand Down
8 changes: 8 additions & 0 deletions Lib/test/test_genericpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,14 @@ def test_invalid_paths(self):
with self.assertRaisesRegex(ValueError, 'embedded null'):
func(b'/tmp\x00abcds')

@unittest.expectedFailureIfWindows('TODO: RUSTPYTHON')
def test_samestat_on_symlink(self):
return super().test_samestat_on_symlink()

@unittest.expectedFailureIfWindows('TODO: RUSTPYTHON')
def test_samefile_on_symlink(self):
return super().test_samefile_on_symlink()

# Following TestCase is not supposed to be run from test_genericpath.
# It is inherited by other test modules (ntpath, posixpath).

Expand Down
8 changes: 8 additions & 0 deletions Lib/test/test_ntpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -1527,6 +1527,14 @@ def test_expandvars(self):
def test_expandvars_nonascii(self):
return super().test_expandvars_nonascii()

@unittest.expectedFailureIfWindows('TODO: RUSTPYTHON')
def test_samefile_on_symlink(self):
return super().test_samefile_on_symlink()

@unittest.expectedFailureIfWindows('TODO: RUSTPYTHON')
def test_samestat_on_symlink(self):
return super().test_samestat_on_symlink()


class PathLikeTests(NtpathTestCase):

Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_py_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def test_absolute_path(self):
self.assertTrue(os.path.exists(self.pyc_path))
self.assertFalse(os.path.exists(self.cache_path))

@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON")
def test_do_not_overwrite_symlinks(self):
# In the face of a cfile argument being a symlink, bail out.
# Issue #17222
Expand Down
7 changes: 1 addition & 6 deletions Lib/test/test_shutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ def test_rmtree_works_on_bytes(self):
self.assertIsInstance(victim, bytes)
shutil.rmtree(victim)

@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON")
@os_helper.skip_unless_symlink
def test_rmtree_fails_on_symlink_onerror(self):
tmp = self.mkdtemp()
Expand All @@ -216,7 +215,6 @@ def onerror(*args):
self.assertEqual(errors[0][1], link)
self.assertIsInstance(errors[0][2][1], OSError)

@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON")
@os_helper.skip_unless_symlink
def test_rmtree_fails_on_symlink_onexc(self):
tmp = self.mkdtemp()
Expand Down Expand Up @@ -1087,7 +1085,6 @@ def test_copymode_follow_symlinks(self):
shutil.copymode(src_link, dst_link)
self.assertEqual(os.stat(src).st_mode, os.stat(dst).st_mode)

@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON")
@unittest.skipUnless(hasattr(os, 'lchmod') or os.name == 'nt', 'requires os.lchmod')
@os_helper.skip_unless_symlink
def test_copymode_symlink_to_symlink(self):
Expand Down Expand Up @@ -1317,7 +1314,6 @@ def test_copy(self):
self.assertTrue(os.path.exists(file2))
self.assertEqual(os.stat(file1).st_mode, os.stat(file2).st_mode)

@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON")
@os_helper.skip_unless_symlink
def test_copy_symlinks(self):
tmp_dir = self.mkdtemp()
Expand Down Expand Up @@ -1360,7 +1356,6 @@ def test_copy2(self):
self.assertEqual(getattr(file1_stat, 'st_flags'),
getattr(file2_stat, 'st_flags'))

@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON")
@os_helper.skip_unless_symlink
def test_copy2_symlinks(self):
tmp_dir = self.mkdtemp()
Expand Down Expand Up @@ -1445,7 +1440,6 @@ def _test_copy_dir(self, copy_func):

### shutil.copyfile

@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON")
@os_helper.skip_unless_symlink
def test_copyfile_symlinks(self):
tmp_dir = self.mkdtemp()
Expand Down Expand Up @@ -1483,6 +1477,7 @@ def test_dont_copy_file_onto_link_to_itself(self):
finally:
shutil.rmtree(TESTFN, ignore_errors=True)

@unittest.expectedFailureIfWindows('TODO: RUSTPYTHON')
@os_helper.skip_unless_symlink
def test_dont_copy_file_onto_symlink_to_itself(self):
# bug 851123.
Expand Down
11 changes: 0 additions & 11 deletions Lib/test/test_stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,21 +325,10 @@ def test_macosx_attribute_values(self):
class TestFilemodeCStat(TestFilemode, unittest.TestCase):
statmod = c_stat

# TODO: RUSTPYTHON
if sys.platform == "win32":
@unittest.expectedFailure
def test_link(self):
super().test_link()

class TestFilemodePyStat(TestFilemode, unittest.TestCase):
statmod = py_stat

# TODO: RUSTPYTHON
if sys.platform == "win32":
@unittest.expectedFailure
def test_link(self):
super().test_link()


if __name__ == '__main__':
unittest.main()
3 changes: 0 additions & 3 deletions Lib/test/test_tarfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,6 @@ def test_gettarinfo_pathlike_name(self):
self.assertEqual(tarinfo.name, tarinfo2.name)
self.assertEqual(tarinfo.size, 3)

@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON")
@unittest.skipUnless(hasattr(os, "link"),
"Missing hardlink implementation")
def test_link_size(self):
Expand All @@ -1301,7 +1300,6 @@ def test_link_size(self):
os_helper.unlink(target)
os_helper.unlink(link)

@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON")
@os_helper.skip_unless_symlink
def test_symlink_size(self):
path = os.path.join(TEMPDIR, "symlink")
Expand Down Expand Up @@ -1849,7 +1847,6 @@ def test_add_twice(self):
self.assertEqual(tarinfo.type, tarfile.REGTYPE,
"add file as regular failed")

@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON")
def test_add_hardlink(self):
tarinfo = self.tar.gettarinfo(self.bar)
self.assertEqual(tarinfo.type, tarfile.LNKTYPE,
Expand Down
Loading