From f0b4fd40fc4431329754b3be3cec0630827df98c Mon Sep 17 00:00:00 2001 From: Taneli Hukkinen Date: Tue, 9 Feb 2021 23:10:30 +0200 Subject: 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 --- tests/test_map.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'tests/test_map.py') 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: # : 'e' # : '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) -- cgit v1.2.3