Skip to content

Commit

Permalink
MAINT: changing error type to match TypeError raised by astropy.units
Browse files Browse the repository at this point in the history
  • Loading branch information
bsipocz committed Jan 10, 2025
1 parent 3075ab6 commit d1fa2bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyvo/dal/tests/test_adhoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class TestClass(dict, AxisParamMixin):

# errors
test_obj.pos.pop()
with pytest.raises(ValueError):
with pytest.raises(TypeError):
test_obj.pos.add(('A', 2, 3))
with pytest.raises(ValueError):
test_obj.pos.add((-2, 7, 3))
Expand Down Expand Up @@ -116,7 +116,7 @@ class TestClass(dict, AxisParamMixin):
test_obj.band.add(())
with pytest.raises(ValueError):
test_obj.band.add((1, 2, 3))
with pytest.raises(ValueError):
with pytest.raises(TypeError):
test_obj.band.add(('INVALID', 6))
with pytest.raises(ValueError):
test_obj.band.add((3, 1))
Expand Down Expand Up @@ -216,7 +216,7 @@ def test_soda_query():
assert not hasattr(test_obj, '_range')

# error cases
with pytest.raises(ValueError):
with pytest.raises(TypeError):
test_obj.circle = ('A', 1, 2)
with pytest.raises(ValueError):
test_obj.circle = (1, 1, 2, 2)
Expand Down

0 comments on commit d1fa2bb

Please sign in to comment.