Skip to content

Commit 7e98949

Browse files
committed
ore tests
1 parent 87321dc commit 7e98949

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/test_auto_map.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,6 +1007,19 @@ def test_fam_get_dt64_a():
10071007
with pytest.raises(KeyError):
10081008
_ = fam[k2]
10091009

1010+
def test_fam_get_dt64_b():
1011+
a1 = np.array(("2023", "1854", "1988"), np.datetime64)
1012+
fam = FrozenAutoMap(list(a1))
1013+
1014+
k1 = np.datetime64("1988-01-01")
1015+
with pytest.raises(KeyError):
1016+
_ = fam[k1]
1017+
1018+
k2 = np.datetime64("2023-01-01")
1019+
with pytest.raises(KeyError):
1020+
_ = fam[k2]
1021+
1022+
10101023
def test_am_get_dt64_a():
10111024
a1 = np.array(("2023", "1854", "1988"), np.datetime64)
10121025
a1.flags.writeable = False

0 commit comments

Comments
 (0)