From 6140967d51cd7f0ce98bbce65f3f367b62eeb91a Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Tue, 3 Apr 2018 00:10:20 -0400 Subject: Make Map a subclass of collecitons.abc.Mapping --- tests/test_map.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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): -- cgit v1.2.3