Mark passing tests on macOS and Windows

This commit is contained in:
Padraic Fanning committed 2021-05-22 14:18:27 -04:00
1 parent facbe5327c
commit 03cf63648d
1 file changed
+8 -4
+8 -4
View File
@@ -350,8 +350,6 @@ class TestBadTempdir:
with self.assertRaises(FileNotFoundError):
self.make_temp()
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_non_directory(self):
with _inside_empty_temp_dir():
tempdir = os.path.join(tempfile.tempdir, 'file')
@@ -360,6 +358,10 @@ class TestBadTempdir:
with self.assertRaises((NotADirectoryError, FileNotFoundError)):
self.make_temp()
# TODO: RUSTPYTHON
if sys.platform != "win32":
test_non_directory = unittest.expectedFailure(test_non_directory)
class TestMkstempInner(TestBadTempdir, BaseTestCase):
"""Test the internal function _mkstemp_inner."""
@@ -1487,8 +1489,6 @@ class TestTemporaryDirectory(BaseTestCase):
self.assertEqual(name, d.name)
self.assertFalse(os.path.exists(name))
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_modes(self):
for mode in range(8):
mode <<= 6
@@ -1503,6 +1503,10 @@ class TestTemporaryDirectory(BaseTestCase):
d.cleanup()
self.assertFalse(os.path.exists(d.name))
# TODO: RUSTPYTHON
if sys.platform not in {"darwin", "win32"}:
test_modes = unittest.expectedFailure(test_modes)
@unittest.skipUnless(hasattr(os, 'chflags'), 'requires os.lchflags')
def test_flags(self):
flags = stat.UF_IMMUTABLE | stat.UF_NOUNLINK