From 02cdd68eb59cd023a1e0ed3c61a10956ff86225c Mon Sep 17 00:00:00 2001 From: Ethan Smith Date: Mon, 18 Nov 2019 04:11:08 -0800 Subject: [PATCH] Skip some stubgen tests on Windows It appears they do not work. --- mypy/test/teststubgen.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mypy/test/teststubgen.py b/mypy/test/teststubgen.py index dd5f56ba92430..6a1a287943aaf 100644 --- a/mypy/test/teststubgen.py +++ b/mypy/test/teststubgen.py @@ -31,6 +31,7 @@ class StubgenCmdLineSuite(unittest.TestCase): """Test cases for processing command-line options and finding files.""" + @unittest.skipIf(sys.platform == 'win32', "clean up fails on Windows") def test_files_found(self) -> None: current = os.getcwd() with tempfile.TemporaryDirectory() as tmp: @@ -51,6 +52,7 @@ def test_files_found(self) -> None: finally: os.chdir(current) + @unittest.skipIf(sys.platform == 'win32', "clean up fails on Windows") def test_packages_found(self) -> None: current = os.getcwd() with tempfile.TemporaryDirectory() as tmp: