Skip to content

Commit

Permalink
Test for int64 > int32 index; remove XFAIL
Browse files Browse the repository at this point in the history
  • Loading branch information
padraic-shafer committed Apr 13, 2024
1 parent 810b5e8 commit 1c82a74
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion databroker/tests/test_broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ def test_indexing(db_empty, RE, hw):
db[-11]


@pytest.mark.xfail(reason="Databroker catalog expects int not int64")
def test_int64_indexing(db_empty, RE, hw):
db = db_empty
RE.subscribe(db.insert)
Expand All @@ -259,6 +258,12 @@ def test_int64_indexing(db_empty, RE, hw):
with does_not_raise():
db[integer64_index]

integer64_index = np.int64(2**33)
assert not isinstance(integer64_index, int)
assert isinstance(integer64_index, numbers.Integral)
with pytest.raises(KeyError):
db[integer64_index]


def test_full_text_search(db_empty, RE, hw):
db = db_empty
Expand Down

0 comments on commit 1c82a74

Please sign in to comment.