]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-109615: Look for 'Modules' as landmark for test_copy_python_src_ignore (GH-110108)
authorSteve Dower <steve.dower@python.org>
Fri, 29 Sep 2023 15:24:38 +0000 (16:24 +0100)
committerGitHub <noreply@github.com>
Fri, 29 Sep 2023 15:24:38 +0000 (16:24 +0100)
Lib/test/test_support.py

index e4a246ba3ddd4d74def293bcba979aaeb3138921..902bec784513075d7e8ebc0b9ee5dc3463019dd3 100644 (file)
@@ -812,7 +812,9 @@ class TestSupport(unittest.TestCase):
         if not os.path.exists(src_dir):
             self.skipTest(f"cannot access Python source code directory:"
                           f" {src_dir!r}")
-        landmark = os.path.join(src_dir, 'Lib', 'os.py')
+        # Check that the landmark copy_python_src_ignore() expects is available
+        # (Previously we looked for 'Lib\os.py', which is always present on Windows.)
+        landmark = os.path.join(src_dir, 'Modules')
         if not os.path.exists(landmark):
             self.skipTest(f"cannot access Python source code directory:"
                           f" {landmark!r} landmark is missing")