summaryrefslogtreecommitdiff
path: root/tests/test_none_keys.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_none_keys.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_none_keys.py')
-rw-r--r--tests/test_none_keys.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_none_keys.py b/tests/test_none_keys.py
index 92e7813..8c0bb37 100644
--- a/tests/test_none_keys.py
+++ b/tests/test_none_keys.py
@@ -1,7 +1,7 @@
import unittest
from immutables.map import map_hash, map_mask, Map as PyMap
-from immutables._testutils import * # NoQA
+from immutables._testutils import HashKey
none_hash = map_hash(None)
@@ -342,7 +342,7 @@ class BaseNoneTest:
self.assertTrue(key4 in m3)
self.assertEqual(m3[key2], 2)
self.assertEqual(m3[key4], 4)
- self.assertFalse(None in m3)
+ self.assertFalse(None in m3)
with self.assertRaises(KeyError):
m3.delete(None)
@@ -352,7 +352,7 @@ class BaseNoneTest:
self.assertTrue(key4 in m3)
self.assertEqual(m3[None], 9)
self.assertEqual(m3[key4], 4)
- self.assertFalse(key2 in m3)
+ self.assertFalse(key2 in m3)
with self.assertRaises(KeyError):
m3.delete(key2)
@@ -362,7 +362,7 @@ class BaseNoneTest:
self.assertTrue(key2 in m3)
self.assertEqual(m3[None], 9)
self.assertEqual(m3[key2], 2)
- self.assertFalse(key4 in m3)
+ self.assertFalse(key4 in m3)
with self.assertRaises(KeyError):
m3.delete(key4)