Skip to content

Commit 8128f11

Browse files
author
Steve Canny
committed
compat: use list(range()) for Python 3
1 parent 4fdf51f commit 8128f11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/text/test_layout.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def in_order(node):
243243
assert bst.value == 9
244244
assert bst._lesser.value == 4
245245
assert bst._greater is None
246-
assert in_order(bst) == range(10)
246+
assert in_order(bst) == list(range(10))
247247

248248
def it_can_find_the_max_value_satisfying_a_predicate(self, max_fixture):
249249
bst, predicate, expected_value = max_fixture

0 commit comments

Comments
 (0)