Skip to content

Commit d95ec8b

Browse files
committed
Mark more failing tests
1 parent 76421b6 commit d95ec8b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Lib/test/test_os.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2390,7 +2390,8 @@ def check_bool(self, f, *args, **kwargs):
23902390
with self.assertRaises(RuntimeWarning):
23912391
f(fd, *args, **kwargs)
23922392

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

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

2522+
# TODO: RUSTPYTHON
2523+
@unittest.expectedFailure
2524+
def test_fsync(self):
2525+
return super().test_fsync()
2526+
25212527

25222528
@unittest.skipUnless(hasattr(os, 'link'), 'requires os.link')
25232529
class LinkTests(unittest.TestCase):

0 commit comments

Comments
 (0)