aboutsummaryrefslogtreecommitdiff
path: root/tests/test_map.py
diff options
context:
space:
mode:
authorTaneli Hukkinen <hukkinj1@users.noreply.github.com>2021-02-09 23:10:30 +0200
committerGitHub <noreply@github.com>2021-02-09 15:10:30 -0600
commitf0b4fd40fc4431329754b3be3cec0630827df98c (patch)
tree88048b69dff067a1d860ef599c0464e355f97089 /tests/test_map.py
parent1282379d831ccc4306345fc7fcd09a0026694074 (diff)
downloadimmutables-f0b4fd40fc4431329754b3be3cec0630827df98c.tar.gz
immutables-f0b4fd40fc4431329754b3be3cec0630827df98c.zip
Fix flake8 errors and add it to CI (#45)
* Fix flake8 errors and add it to CI * Use extras for test dependencies Co-authored-by: Fantix King <fantix.king@gmail.com>
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)