mirror of https://github.com/python/cpython
Hopeful fix for test_rglob_common on Windows without symlinks. (Merge 3.5->3.6)
This commit is contained in:
commit
2900995edd
|
@ -1456,8 +1456,11 @@ class _BasePathTest(object):
|
||||||
_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"), [])
|
||||||
_check(p.rglob("*/fileB"), ["dirB/fileB", "dirB/linkD/fileB",
|
if symlink_skip_reason:
|
||||||
"linkB/fileB", "dirA/linkC/fileB"])
|
_check(p.rglob("*/fileB"), ["dirB/fileB"])
|
||||||
|
else:
|
||||||
|
_check(p.rglob("*/fileB"), ["dirB/fileB", "dirB/linkD/fileB",
|
||||||
|
"linkB/fileB", "dirA/linkC/fileB"])
|
||||||
_check(p.rglob("file*"), ["fileA", "dirB/fileB",
|
_check(p.rglob("file*"), ["fileA", "dirB/fileB",
|
||||||
"dirC/fileC", "dirC/dirD/fileD"])
|
"dirC/fileC", "dirC/dirD/fileD"])
|
||||||
p = P(BASE, "dirC")
|
p = P(BASE, "dirC")
|
||||||
|
|
Loading…
Reference in New Issue