We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d514d08 commit c0e5defCopy full SHA for c0e5def
larray/tests/test_array.py
@@ -820,7 +820,8 @@ def test_getitem_bool_ndarray_key_arr_wh_bool_axis():
820
# raw key => ???
821
# this test checks that the current behavior does not change unintentionally...
822
# ... 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,))")
+ # 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,\)\)"
825
with pytest.raises(ValueError, match=msg):
826
arr[key]
827
0 commit comments