Skip to content

Commit 9670d00

Browse files
committed
fix: typo raises versus warns
1 parent ff2a9aa commit 9670d00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astroquery/simbad/tests/test_simbad_remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def test_query_tap(self):
129129
" c 3")
130130
assert expect == str(result)
131131
# Test query_tap raised errors
132-
with pytest.raises(DALOverflowWarning, match="Partial result set *"):
132+
with pytest.warns(DALOverflowWarning, match="Partial result set *"):
133133
truncated_result = Simbad.query_tap("SELECT * from basic", maxrec=2)
134134
assert len(truncated_result) == 2
135135
with pytest.raises(ValueError, match="The maximum number of records cannot exceed 2000000."):

0 commit comments

Comments
 (0)