From 1acfb919d3c98b2e1e131f03cfbb43f4ae73242a Mon Sep 17 00:00:00 2001 From: Padraic Fanning Date: Mon, 15 Feb 2021 16:51:37 -0500 Subject: [PATCH] Mark erroring tests on Windows only --- Lib/test/test_charmapcodec.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Lib/test/test_charmapcodec.py b/Lib/test/test_charmapcodec.py index 8ea75d912..cd7a35d69 100644 --- a/Lib/test/test_charmapcodec.py +++ b/Lib/test/test_charmapcodec.py @@ -51,5 +51,15 @@ class CharmapCodecTest(unittest.TestCase): def test_maptoundefined(self): self.assertRaises(UnicodeError, str, b'abc\001', codecname) + # TODO: RUSTPYTHON + import sys + if sys.platform == "win32": + # TODO: RUSTPYTHON + test_constructorx = unittest.expectedFailure(test_constructorx) + # TODO: RUSTPYTHON + test_constructory = unittest.expectedFailure(test_constructory) + # TODO: RUSTPYTHON + test_maptoundefined = unittest.expectedFailure(test_maptoundefined) + if __name__ == "__main__": unittest.main()