summaryrefslogtreecommitdiff
path: root/tests/test_issue24.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_issue24.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_issue24.py')
-rw-r--r--tests/test_issue24.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/test_issue24.py b/tests/test_issue24.py
index afe6525..7d51e34 100644
--- a/tests/test_issue24.py
+++ b/tests/test_issue24.py
@@ -51,7 +51,7 @@ class Issue24Base:
d = m.__dump__().splitlines()
self.assertTrue(d)
if d[0].startswith('HAMT'):
- header = d[1] # skip _map.Map.__dump__() header
+ header = d[1] # skip _map.Map.__dump__() header
else:
header = d[0]
self.dump_check_bitmap_node_count(header, 7)
@@ -66,7 +66,7 @@ class Issue24Base:
d = m2.__dump__().splitlines()
self.assertTrue(d)
if d[0].startswith('HAMT'):
- header = d[1] # skip _map.Map.__dump__() header
+ header = d[1] # skip _map.Map.__dump__() header
else:
header = d[0]
self.dump_check_bitmap_node_count(header, 4)
@@ -79,7 +79,7 @@ class Issue24Base:
self.assertTrue(len(d) > 3)
# get node headers
if d[0].startswith('HAMT'):
- h1, h2 = d[1], d[3] # skip _map.Map.__dump__() header
+ h1, h2 = d[1], d[3] # skip _map.Map.__dump__() header
else:
h1, h2 = d[0], d[2]
self.dump_check_node_kind(h1, 'Bitmap')
@@ -96,12 +96,13 @@ class Issue24Base:
self.assertTrue(len(d) > 3)
# get node headers
if d[0].startswith('HAMT'):
- h1, h2 = d[1], d[3] # skip _map.Map.__dump__() header
+ h1, h2 = d[1], d[3] # skip _map.Map.__dump__() header
else:
h1, h2 = d[0], d[2]
self.dump_check_node_kind(h1, 'Bitmap')
self.dump_check_collision_node_count(h2, 4)
+
try:
from immutables._map import Map as CMap
except ImportError: