summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dictviews.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-04-24 06:05:00 (GMT)
committerGitHub <noreply@github.com>2017-04-24 06:05:00 (GMT)
commit2e576f5aec1f8f23f07001e2eb3db9276851a4fc (patch)
tree0c42af143f2ab71bce5865aa72056330fcc510db /Lib/test/test_dictviews.py
parent9eb5ca0774f94215be48442100c829db2484e146 (diff)
downloadcpython-2e576f5aec1f8f23f07001e2eb3db9276851a4fc.zip
cpython-2e576f5aec1f8f23f07001e2eb3db9276851a4fc.tar.gz
cpython-2e576f5aec1f8f23f07001e2eb3db9276851a4fc.tar.bz2
bpo-30144: Import collections ABC from collections.abc rather than collections. (#1263)
Diffstat (limited to 'Lib/test/test_dictviews.py')
-rw-r--r--Lib/test/test_dictviews.py36
1 files changed, 18 insertions, 18 deletions
diff --git a/Lib/test/test_dictviews.py b/Lib/test/test_dictviews.py
index 49a9e9c..51ad9b3 100644
--- a/Lib/test/test_dictviews.py
+++ b/Lib/test/test_dictviews.py
@@ -1,4 +1,4 @@
-import collections
+import collections.abc
import copy
import pickle
import unittest
@@ -249,23 +249,23 @@ class DictSetTest(unittest.TestCase):
def test_abc_registry(self):
d = dict(a=1)
- self.assertIsInstance(d.keys(), collections.KeysView)
- self.assertIsInstance(d.keys(), collections.MappingView)
- self.assertIsInstance(d.keys(), collections.Set)
- self.assertIsInstance(d.keys(), collections.Sized)
- self.assertIsInstance(d.keys(), collections.Iterable)
- self.assertIsInstance(d.keys(), collections.Container)
-
- self.assertIsInstance(d.values(), collections.ValuesView)
- self.assertIsInstance(d.values(), collections.MappingView)
- self.assertIsInstance(d.values(), collections.Sized)
-
- self.assertIsInstance(d.items(), collections.ItemsView)
- self.assertIsInstance(d.items(), collections.MappingView)
- self.assertIsInstance(d.items(), collections.Set)
- self.assertIsInstance(d.items(), collections.Sized)
- self.assertIsInstance(d.items(), collections.Iterable)
- self.assertIsInstance(d.items(), collections.Container)
+ self.assertIsInstance(d.keys(), collections.abc.KeysView)
+ self.assertIsInstance(d.keys(), collections.abc.MappingView)
+ self.assertIsInstance(d.keys(), collections.abc.Set)
+ self.assertIsInstance(d.keys(), collections.abc.Sized)
+ self.assertIsInstance(d.keys(), collections.abc.Iterable)
+ self.assertIsInstance(d.keys(), collections.abc.Container)
+
+ self.assertIsInstance(d.values(), collections.abc.ValuesView)
+ self.assertIsInstance(d.values(), collections.abc.MappingView)
+ self.assertIsInstance(d.values(), collections.abc.Sized)
+
+ self.assertIsInstance(d.items(), collections.abc.ItemsView)
+ self.assertIsInstance(d.items(), collections.abc.MappingView)
+ self.assertIsInstance(d.items(), collections.abc.Set)
+ self.assertIsInstance(d.items(), collections.abc.Sized)
+ self.assertIsInstance(d.items(), collections.abc.Iterable)
+ self.assertIsInstance(d.items(), collections.abc.Container)
if __name__ == "__main__":