Skip to content

Commit

Permalink
fix: typo raises versus warns
Browse files Browse the repository at this point in the history
  • Loading branch information
ManonMarchand committed Jun 26, 2024
1 parent 295babc commit f530766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astroquery/simbad/tests/test_simbad_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def test_query_tap(self):
" c 3")
assert expect == str(result)
# Test query_tap raised errors
with pytest.raises(DALOverflowWarning, match="Partial result set *"):
with pytest.warns(DALOverflowWarning, match="Partial result set *"):
truncated_result = Simbad.query_tap("SELECT * from basic", maxrec=2)
assert len(truncated_result) == 2
with pytest.raises(ValueError, match="The maximum number of records cannot exceed 2000000."):
Expand Down

0 comments on commit f530766

Please sign in to comment.