From: Zachary Ware Date: Sat, 22 Nov 2014 23:03:46 +0000 (-0600) Subject: Issue #22834: cwd can't not exist on Windows, skip the test X-Git-Tag: v3.5.0a1~459 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=513112b2293c48f163aeaf4fc8e118ad6b433368;p=thirdparty%2FPython%2Fcpython.git Issue #22834: cwd can't not exist on Windows, skip the test --- diff --git a/Lib/test/test_importlib/import_/test_path.py b/Lib/test/test_importlib/import_/test_path.py index d5442c328a49..9a3c4fe877f6 100644 --- a/Lib/test/test_importlib/import_/test_path.py +++ b/Lib/test/test_importlib/import_/test_path.py @@ -159,6 +159,7 @@ class FinderTests: got = self.machinery.PathFinder.find_spec('whatever', [path]) self.assertEqual(got, success_finder.spec) + @unittest.skipIf(sys.platform == 'win32', "cwd can't not exist on Windows") def test_deleted_cwd(self): # Issue #22834 self.addCleanup(os.chdir, os.getcwd())