Mark erroring tests on Windows

This commit is contained in:
Padraic Fanning committed 2021-04-28 18:30:22 -04:00
1 parent d5ae9d4972
commit 8450e10001
1 file changed
+8
+8
View File
@@ -53,10 +53,18 @@ class PopenTest(unittest.TestCase):
with os.popen("echo hello") as f:
self.assertEqual(f.read(), "hello\n")
# TODO: RUSTPYTHON
if sys.platform == "win32":
test_contextmanager = unittest.expectedFailure(test_contextmanager)
def test_iterating(self):
with os.popen("echo hello") as f:
self.assertEqual(list(f), ["hello\n"])
# TODO: RUSTPYTHON
if sys.platform == "win32":
test_iterating = unittest.expectedFailure(test_iterating)
def test_keywords(self):
with os.popen(cmd="exit 0", mode="w", buffering=-1):
pass