Commit 03abf6dd authored by Guido van Rossum's avatar Guido van Rossum

Hopeful fix for test_rglob_common on Windows without symlinks. (Merge 3.4->3.5)

parents c3a82727 9c39b67c
...@@ -1456,6 +1456,9 @@ class _BasePathTest(object): ...@@ -1456,6 +1456,9 @@ 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"), [])
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",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment