aboutsummaryrefslogtreecommitdiff
path: root/tests/test_map.py
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2018-04-03 00:10:20 -0400
committerYury Selivanov <yury@magic.io>2018-04-03 00:10:20 -0400
commit6140967d51cd7f0ce98bbce65f3f367b62eeb91a (patch)
tree7ec46c66fca39ef9055c3630b159dd91307add59 /tests/test_map.py
parent5804f0c47e60c7c2a0915cce2dbcfc7593881761 (diff)
downloadimmutables-6140967d51cd7f0ce98bbce65f3f367b62eeb91a.tar.gz
immutables-6140967d51cd7f0ce98bbce65f3f367b62eeb91a.zip
Make Map a subclass of collecitons.abc.Mapping
Diffstat (limited to 'tests/test_map.py')
-rw-r--r--tests/test_map.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_map.py b/tests/test_map.py
index 3e7633a..7af9513 100644
--- a/tests/test_map.py
+++ b/tests/test_map.py
@@ -1,3 +1,4 @@
+import collections.abc
import gc
import random
import unittest
@@ -795,6 +796,9 @@ class BaseMapTest:
with HaskKeyCrasher(error_on_hash=True):
hash(m)
+ def test_abc_1(self):
+ self.assertTrue(issubclass(self.Map, collections.abc.Mapping))
+
class PyMapTest(BaseMapTest, unittest.TestCase):