Skip to content

Commit c0e5def

Browse files
committed
fixed test with Python 2.7
1 parent d514d08 commit c0e5def

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

larray/tests/test_array.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,8 @@ def test_getitem_bool_ndarray_key_arr_wh_bool_axis():
820820
# raw key => ???
821821
# this test checks that the current behavior does not change unintentionally...
822822
# ... but I am unsure the current behavior is what we actually want
823-
msg = re.escape("boolean key with a different shape ((4,)) than array ((2,))")
823+
# L? is to account for Python2 where shape can be 'long' integers
824+
msg = r"boolean key with a different shape \(\(4L?,\)\) than array \(\(2,\)\)"
824825
with pytest.raises(ValueError, match=msg):
825826
arr[key]
826827

0 commit comments

Comments
 (0)