mirror of
https://github.com/python/cpython.git
synced 2025-11-10 02:21:40 +00:00
Hopeful fix for test_rglob_common on Windows without symlinks.
This commit is contained in:
parent
bc9fddaf50
commit
9c39b67ca5
1 changed files with 5 additions and 2 deletions
|
|
@ -1399,6 +1399,9 @@ def _check(glob, expected):
|
||||||
_check(it, ["fileA"])
|
_check(it, ["fileA"])
|
||||||
_check(p.rglob("fileB"), ["dirB/fileB"])
|
_check(p.rglob("fileB"), ["dirB/fileB"])
|
||||||
_check(p.rglob("*/fileA"), [])
|
_check(p.rglob("*/fileA"), [])
|
||||||
|
if symlink_skip_reason:
|
||||||
|
_check(p.rglob("*/fileB"), ["dirB/fileB"])
|
||||||
|
else:
|
||||||
_check(p.rglob("*/fileB"), ["dirB/fileB", "dirB/linkD/fileB",
|
_check(p.rglob("*/fileB"), ["dirB/fileB", "dirB/linkD/fileB",
|
||||||
"linkB/fileB", "dirA/linkC/fileB"])
|
"linkB/fileB", "dirA/linkC/fileB"])
|
||||||
_check(p.rglob("file*"), ["fileA", "dirB/fileB",
|
_check(p.rglob("file*"), ["fileA", "dirB/fileB",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue