Skip to content

Commit

Permalink
Fix problem from formerly deprecated numpy behaviour now raising exce…
Browse files Browse the repository at this point in the history
…ption (#228)
  • Loading branch information
stscirij authored Jun 28, 2023
1 parent 0f721dc commit 586599b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_cosutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_get_table_exceptions():
name = "getTable.fits"
generate_fits_file(name)
# truth = [tuple(ofd[1].data[3])]
t = np.ones(5) # non-existent values
t = 1.0 # non-existent value
with pytest.raises(MissingRowError):
cosutil.getTable(name, {'Time': t}, exactly_one=True)
# Cleanup
Expand Down

0 comments on commit 586599b

Please sign in to comment.