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
Mark more failing tests
  • Loading branch information
ShaharNaveh committed Aug 7, 2025
commit d95ec8b1ff1ac4492bdce7df53be02f6dc190cfd
10 changes: 8 additions & 2 deletions Lib/test/test_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -2390,7 +2390,8 @@ def check_bool(self, f, *args, **kwargs):
with self.assertRaises(RuntimeWarning):
f(fd, *args, **kwargs)

@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON (AssertionError: <function fdopen at 0x1caa19ae6c0> didn't raise an OSError with a bad file descriptor)")
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_fdopen(self):
self.check(os.fdopen, encoding="utf-8")
self.check_bool(os.fdopen, encoding="utf-8")
Expand Down Expand Up @@ -2462,7 +2463,7 @@ def test_fpathconf(self):
self.check_bool(os.fpathconf, "PC_NAME_MAX")

# TODO: RUSTPYTHON
@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON (AssertionError: <builtin_function_or_method object at 0x1f330cd8e60> didn't raise an OSError with a bad file descriptor)")
@unittest.expectedFailure
@unittest.skipUnless(hasattr(os, 'ftruncate'), 'test needs os.ftruncate()')
def test_ftruncate(self):
self.check(os.truncate, 0)
Expand Down Expand Up @@ -2518,6 +2519,11 @@ def test_blocking(self):
def test_fchdir(self):
return super().test_fchdir()

# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_fsync(self):
return super().test_fsync()


@unittest.skipUnless(hasattr(os, 'link'), 'requires os.link')
class LinkTests(unittest.TestCase):
Expand Down
Loading