Skip to content

Commit 4f4c799

Browse files
zoobavstinner
authored andcommitted
pythongh-109615: Look for 'Modules' as landmark for test_copy_python_src_ignore (pythonGH-110108)
(cherry picked from commit 20bc5f7)
1 parent c310ecb commit 4f4c799

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_support.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,9 @@ def test_copy_python_src_ignore(self):
777777
if not os.path.exists(src_dir):
778778
self.skipTest(f"cannot access Python source code directory:"
779779
f" {src_dir!r}")
780-
landmark = os.path.join(src_dir, 'Lib', 'os.py')
780+
# Check that the landmark copy_python_src_ignore() expects is available
781+
# (Previously we looked for 'Lib\os.py', which is always present on Windows.)
782+
landmark = os.path.join(src_dir, 'Modules')
781783
if not os.path.exists(landmark):
782784
self.skipTest(f"cannot access Python source code directory:"
783785
f" {landmark!r} landmark is missing")

0 commit comments

Comments
 (0)