summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dictviews.py
diff options
context:
space:
mode:
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__":