[Python-checkins] cpython (merge 3.4 -> 3.5): Hopeful fix for test_rglob_common on Windows without symlinks. (Merge 3.4->3.5)

guido.van.rossum python-checkins at python.org
Thu Jan 7 16:13:52 EST 2016


https://hg.python.org/cpython/rev/9ead69bd94f1
changeset:   99802:9ead69bd94f1
branch:      3.5
parent:      99799:8a3b0c1fb3d3
parent:      99801:8e1788329e77
user:        Guido van Rossum <guido at python.org>
date:        Thu Jan 07 13:13:04 2016 -0800
summary:
  Hopeful fix for test_rglob_common on Windows without symlinks. (Merge 3.4->3.5)

files:
  Lib/test/test_pathlib.py |  7 +++++--
  1 files changed, 5 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py
--- a/Lib/test/test_pathlib.py
+++ b/Lib/test/test_pathlib.py
@@ -1456,8 +1456,11 @@
         _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")

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list