From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 29 Sep 2023 15:48:59 +0000 (-0700) Subject: gh-109615: Look for 'Modules' as landmark for test_copy_python_src_ignore (GH-110108) X-Git-Tag: v3.11.6~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a95e8cf9081ef7ff7450d6060bd968ec79a275f9;p=thirdparty%2FPython%2Fcpython.git gh-109615: Look for 'Modules' as landmark for test_copy_python_src_ignore (GH-110108) (cherry picked from commit 20bc5f7c28a6f8a2e156c4a748ffabb5efc7c761) Co-authored-by: Steve Dower --- diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index 2f70f919d404..9894c2647d7c 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -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")