summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pathlib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@dropbox.com>2016-01-07 21:13:31 (GMT)
committerGuido van Rossum <guido@dropbox.com>2016-01-07 21:13:31 (GMT)
commit2900995edd00d86e1579e80c939ef67e7c83a5b4 (patch)
treeb3dd12b2b2fa992b63cd85f5f34f45341287437d /Lib/test/test_pathlib.py
parent8355bd7f66029708c9a1d4145314b0654c81ea48 (diff)
parent03abf6dd98d083cd6db24db75d70457578d80767 (diff)
downloadcpython-2900995edd00d86e1579e80c939ef67e7c83a5b4.zip
cpython-2900995edd00d86e1579e80c939ef67e7c83a5b4.tar.gz
cpython-2900995edd00d86e1579e80c939ef67e7c83a5b4.tar.bz2
Hopeful fix for test_rglob_common on Windows without symlinks. (Merge 3.5->3.6)
Diffstat (limited to 'Lib/test/test_pathlib.py')
-rw-r--r--Lib/test/test_pathlib.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py
index 8e1b545..b725cd9 100644
--- a/Lib/test/test_pathlib.py
+++ b/Lib/test/test_pathlib.py
@@ -1456,8 +1456,11 @@ class _BasePathTest(object):
_check(it, ["fileA"])
_check(p.rglob("fileB"), ["dirB/fileB"])
_check(p.rglob("*/fileA"), [])
- _check(p.rglob("*/fileB"), ["dirB/fileB", "dirB/linkD/fileB",
- "linkB/fileB", "dirA/linkC/fileB"])
+ if symlink_skip_reason:
+ _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",
"dirC/fileC", "dirC/dirD/fileD"])
p = P(BASE, "dirC")