8000 [3.12] gh-109615: Fix support test_copy_python_src_ignore() (#109958) by vstinner · Pull Request #110340 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.12] gh-109615: Fix support test_copy_python_src_ignore() (#109958) #110340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 4, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
gh-109615: Look for 'Modules' as landmark for test_copy_python_src_ig…
…nore (GH-110108)

(cherry picked from commit 20bc5f7)
  • Loading branch information
zooba authored and vstinner committed Oct 4, 2023
commit 4f4c799e83721c1a2c2c7fe1068c2496242ecc8d
4 changes: 3 additions & 1 deletion Lib/test/test_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,9 @@ def test_copy_python_src_ignore(self):
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")
Expand Down
0