diff options
author | Steve Dower <steve.dower@python.org> | 2023-09-29 15:24:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-29 15:24:38 (GMT) |
commit | 20bc5f7c28a6f8a2e156c4a748ffabb5efc7c761 (patch) | |
tree | ccb54b1c8749feaf3ce70dc98705422ac9a2eec8 | |
parent | 6364873d2abe0973e21af7c8c7dddbb5f8dc1e85 (diff) | |
download | cpython-20bc5f7c28a6f8a2e156c4a748ffabb5efc7c761.zip cpython-20bc5f7c28a6f8a2e156c4a748ffabb5efc7c761.tar.gz cpython-20bc5f7c28a6f8a2e156c4a748ffabb5efc7c761.tar.bz2 |
gh-109615: Look for 'Modules' as landmark for test_copy_python_src_ignore (GH-110108)
-rw-r--r-- | Lib/test/test_support.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index e4a246b..902bec7 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -812,7 +812,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") |