mirror of
https://github.com/python/cpython.git
synced 2025-11-13 15:40:05 +00:00
gh-109615: Look for 'Modules' as landmark for test_copy_python_src_ignore (GH-110108)
This commit is contained in:
parent
6364873d2a
commit
20bc5f7c28
1 changed files with 3 additions and 1 deletions
|
|
@ -812,7 +812,9 @@ class TestSupport(unittest.TestCase):
|
||||||
if not os.path.exists(src_dir):
|
if not os.path.exists(src_dir):
|
||||||
self.skipTest(f"cannot access Python source code directory:"
|
self.skipTest(f"cannot access Python source code directory:"
|
||||||
f" {src_dir!r}")
|
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):
|
if not os.path.exists(landmark):
|
||||||
self.skipTest(f"cannot access Python source code directory:"
|
self.skipTest(f"cannot access Python source code directory:"
|
||||||
f" {landmark!r} landmark is missing")
|
f" {landmark!r} landmark is missing")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue