Mark failing tests on Windows only

This commit is contained in:
Padraic Fanning committed 2021-02-20 14:07:52 -05:00
1 parent 6da6f1e6dc
commit e223dcc778
1 file changed
+29
+29
View File
@@ -136,6 +136,11 @@ class PyAutoFileTests(AutoFileTests, unittest.TestCase):
open = staticmethod(pyio.open)
# TODO: RUSTPYTHON
if sys.platform == "win32":
PyAutoFileTests = unittest.expectedFailure(PyAutoFileTests)
class OtherFileTests:
def tearDown(self):
@@ -333,6 +338,30 @@ class COtherFileTests(OtherFileTests, unittest.TestCase):
class PyOtherFileTests(OtherFileTests, unittest.TestCase):
open = staticmethod(pyio.open)
# TODO: RUSTPYTHON
if sys.platform == "win32":
@unittest.expectedFailure
def testIteration(self):
super().testIteration()
# TODO: RUSTPYTHON
if sys.platform == "win32":
@unittest.expectedFailure
def testModeStrings(self):
super().testModeStrings()
# TODO: RUSTPYTHON
if sys.platform == "win32":
@unittest.expectedFailure
def testSetBufferSize(self):
super().testSetBufferSize()
# TODO: RUSTPYTHON
if sys.platform == "win32":
@unittest.expectedFailure
def testTruncateOnWindows(self):
super().testTruncateOnWindows()
if __name__ == '__main__':
unittest.main()