Skip to content

Commit a95e8cf

Browse files
gh-109615: Look for 'Modules' as landmark for test_copy_python_src_ignore (GH-110108)
(cherry picked from commit 20bc5f7) Co-authored-by: Steve Dower <[email protected]>
1 parent d87217f commit a95e8cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_support.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,9 @@ def test_copy_python_src_ignore(self):
789789
if not os.path.exists(src_dir):
790790
self.skipTest(f"cannot access Python source code directory:"
791791
f" {src_dir!r}")
792-
landmark = os.path.join(src_dir, 'Lib', 'os.py')
792+
# Check that the landmark copy_python_src_ignore() expects is available
793+
# (Previously we looked for 'Lib\os.py', which is always present on Windows.)
794+
landmark = os.path.join(src_dir, 'Modules')
793795
if not os.path.exists(landmark):
794796
self.skipTest(f"cannot access Python source code directory:"
795797
f" {landmark!r} landmark is missing")

0 commit comments

Comments
 (0)