aboutsummaryrefslogtreecommitdiff
path: root/tests/test_map.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_map.py')
-rw-r--r--tests/test_map.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/test_map.py b/tests/test_map.py
index 4a473b3..9fffd8c 100644
--- a/tests/test_map.py
+++ b/tests/test_map.py
@@ -7,7 +7,12 @@ import unittest
import weakref
from immutables.map import Map as PyMap
-from immutables._testutils import * # NoQA
+from immutables._testutils import EqError
+from immutables._testutils import HashKey
+from immutables._testutils import HashKeyCrasher
+from immutables._testutils import HashingError
+from immutables._testutils import KeyStr
+from immutables._testutils import ReprError
class BaseMapTest:
@@ -159,8 +164,6 @@ class BaseMapTest:
# <Key name:E hash:362244>: 'e'
# <Key name:B hash:101>: 'b'
-
-
def test_map_stress_01(self):
COLLECTION_SIZE = 7000
TEST_ITERS_EVERY = 647
@@ -1235,7 +1238,6 @@ class BaseMapTest:
# node to be converted into an array node
h = h.set(HashKey(i, i), i)
-
h = h.set(HashKey(18, '18-collision'), 18)
with h.mutate() as m:
@@ -1348,7 +1350,9 @@ class BaseMapTest:
with self.assertRaisesRegex(TypeError, "can('t|not) pickle"):
pickle.dumps(h.mutate())
- @unittest.skipIf(sys.version_info < (3, 7, 0), "__class_getitem__ is not available")
+ @unittest.skipIf(
+ sys.version_info < (3, 7, 0), "__class_getitem__ is not available"
+ )
def test_map_is_subscriptable(self):
self.assertIs(self.Map[int, str], self.Map)