]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-109615: Look for 'Modules' as landmark for test_copy_python_src_ignore (GH-110108)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 29 Sep 2023 15:48:59 +0000 (08:48 -0700)
committerGitHub <noreply@github.com>
Fri, 29 Sep 2023 15:48:59 +0000 (15:48 +0000)
(cherry picked from commit 20bc5f7c28a6f8a2e156c4a748ffabb5efc7c761)

Co-authored-by: Steve Dower <steve.dower@python.org>
Lib/test/test_support.py

index 2f70f919d4043ffe27f4a9c4dc096076f7afd2e9..9894c2647d7c93db9e0d3fbe9446fda07f9dcea8 100644 (file)
@@ -789,7 +789,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")