Skip to content

Commit 20bc5f7

Browse files
authored
gh-109615: Look for 'Modules' as landmark for test_copy_python_src_ignore (GH-110108)
1 parent 6364873 commit 20bc5f7

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
@@ -812,7 +812,9 @@ def test_copy_python_src_ignore(self):
812812
if not os.path.exists(src_dir):
813813
self.skipTest(f"cannot access Python source code directory:"
814814
f" {src_dir!r}")
815-
landmark = os.path.join(src_dir, 'Lib', 'os.py')
815+
# Check that the landmark copy_python_src_ignore() expects is available
816+
# (Previously we looked for 'Lib\os.py', which is always present on Windows.)
817+
landmark = os.path.join(src_dir, 'Modules')
816818
if not os.path.exists(landmark):
817819
self.skipTest(f"cannot access Python source code directory:"
818820
f" {landmark!r} landmark is missing")

0 commit comments

Comments
 (0)