Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Remove expectedFailure
  • Loading branch information
ShaharNaveh committed Jul 9, 2025
commit 13c77ed879f08dda8ea3bdd5fd15ffa326f20f00
12 changes: 0 additions & 12 deletions Lib/test/test_compileall.py
Original file line number Diff line number Diff line change
Expand Up @@ -961,8 +961,6 @@ def test_hardlink_bad_args(self):
# only for more than one optimization level
self.assertRunNotOK(self.directory, "-o 1", "--hardlink-dupes")

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_hardlink(self):
# 'a = 0' code produces the same bytecode for the 3 optimization
# levels. All three .pyc files must have the same inode (hardlinks).
Expand Down Expand Up @@ -1071,8 +1069,6 @@ def check_hardlinks(self, script, docstring=False, assertion=False):
self.assertEqual(is_hardlink(pycs[1], pycs[2]),
not docstring)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_hardlink(self):
# Test deduplication on all combinations
for code, docstring, assertion in self.iter_codes():
Expand All @@ -1082,8 +1078,6 @@ def test_hardlink(self):
self.compile_dir()
self.check_hardlinks(script, docstring, assertion)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_only_two_levels(self):
# Don't build the 3 optimization levels, but only 2
for opts in ((0, 1), (1, 2), (0, 2)):
Expand All @@ -1097,8 +1091,6 @@ def test_only_two_levels(self):
pyc2 = get_pyc(script, opts[1])
self.assertTrue(is_hardlink(pyc1, pyc2))

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_duplicated_levels(self):
# compile_dir() must not fail if optimize contains duplicated
# optimization levels and/or if optimization levels are not sorted.
Expand All @@ -1111,8 +1103,6 @@ def test_duplicated_levels(self):
pyc2 = get_pyc(script, 1)
self.assertTrue(is_hardlink(pyc1, pyc2))

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_recompilation(self):
# Test compile_dir() when pyc files already exists and the script
# content changed
Expand All @@ -1138,8 +1128,6 @@ def test_recompilation(self):
# opt-1.pyc and opt-2.pyc have different content
self.assertFalse(filecmp.cmp(pycs[1], pycs[2], shallow=True))

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_import(self):
# Test that import updates a single pyc file when pyc files already
# exists and the script content changed
Expand Down
Loading