Skip to content

Commit

Permalink
fix windows bug (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjlane authored Nov 4, 2024
1 parent 10ee7c4 commit 759b57f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/test_rsmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ def test_filter_common_indices_with_maps(noise_free_map: Map) -> None:


def test_verify_type(noise_free_map: Map) -> None:
dataseries = rs.DataSeries([1, 2, 3])
dataseries = rs.DataSeries([1, 2, 3]).astype(np.int32)
assert np.issubdtype(dataseries.dtype, np.integer)
noise_free_map._verify_type("foo", [int], dataseries, fix=False, cast_fix_to=int)
noise_free_map._verify_type("foo", [int, np.int32], dataseries, fix=False, cast_fix_to=int)

with pytest.raises(AssertionError):
noise_free_map._verify_type("foo", [float], dataseries, fix=False, cast_fix_to=float)
Expand Down

0 comments on commit 759b57f

Please sign in to comment.