summaryrefslogtreecommitdiff
path: root/Lib/test/test_pathlib.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-04-24 09:05:00 +0300
committerGitHub <noreply@github.com>2017-04-24 09:05:00 +0300
commit2e576f5aec1f8f23f07001e2eb3db9276851a4fc (patch)
tree0c42af143f2ab71bce5865aa72056330fcc510db /Lib/test/test_pathlib.py
parent9eb5ca0774f94215be48442100c829db2484e146 (diff)
downloadcpython-git-2e576f5aec1f8f23f07001e2eb3db9276851a4fc.tar.gz
bpo-30144: Import collections ABC from collections.abc rather than collections. (#1263)
Diffstat (limited to 'Lib/test/test_pathlib.py')
-rw-r--r--Lib/test/test_pathlib.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py
index 21a6390e35..138bc06317 100644
--- a/Lib/test/test_pathlib.py
+++ b/Lib/test/test_pathlib.py
@@ -1,4 +1,4 @@
-import collections
+import collections.abc
import io
import os
import errno
@@ -1408,7 +1408,7 @@ class _BasePathTest(object):
P = self.cls
p = P(BASE)
it = p.glob("fileA")
- self.assertIsInstance(it, collections.Iterator)
+ self.assertIsInstance(it, collections.abc.Iterator)
_check(it, ["fileA"])
_check(p.glob("fileB"), [])
_check(p.glob("dir*/file*"), ["dirB/fileB", "dirC/fileC"])
@@ -1432,7 +1432,7 @@ class _BasePathTest(object):
P = self.cls
p = P(BASE)
it = p.rglob("fileA")
- self.assertIsInstance(it, collections.Iterator)
+ self.assertIsInstance(it, collections.abc.Iterator)
_check(it, ["fileA"])
_check(p.rglob("fileB"), ["dirB/fileB"])
_check(p.rglob("*/fileA"), [])