Skip to content

Commit 27fbe24

Browse files
authored
Don't skip test in test_tempfile.py on all platforms (#8067)
1 parent 9259d22 commit 27fbe24

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_tempfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1746,7 +1746,8 @@ def test_cleanup_with_symlink_to_a_directory(self):
17461746
"were deleted")
17471747
d2.cleanup()
17481748

1749-
@unittest.skip("TODO: RUSTPYTHON; No such file or directory \"...\"")
1749+
@unittest.skipIf(sys.platform == "win32", "TODO: RUSTPYTHON; flaky, sometimes pollute env on CI")
1750+
@unittest.expectedFailureIf(sys.platform in ("android", "linux"), "TODO: RUSTPYTHON; FileNotFoundError: [Errno 2] No such file or directory: '<LONG_PATH>'")
17501751
@os_helper.skip_unless_symlink
17511752
def test_cleanup_with_symlink_modes(self):
17521753
# cleanup() should not follow symlinks when fixing mode bits (#91133)

0 commit comments

Comments
 (0)