Skip to content

Commit

Permalink
Changes in inequality test check
Browse files Browse the repository at this point in the history
  • Loading branch information
geekypathak21 committed Apr 17, 2019
1 parent a580a0d commit 9478ea0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions astropy/wcs/tests/test_wcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1200,9 +1200,9 @@ def test_cunit():
# Equality checking of two different cunit object having same values
assert w1.wcs.cunit == w3.wcs.cunit
# Inequality checking of two different cunit object having different values
assert w1.wcs.cunit != w2.wcs.cunit
assert not w1.wcs.cunit == w2.wcs.cunit
# Inequality checking of cunit with a list of literals
assert w1.wcs.cunit != [1, 2, 3]
assert not w1.wcs.cunit == [1, 2, 3]
# Comparison is not implemented TypeError will raise
with pytest.raises(TypeError):
w1.wcs.cunit < w2.wcs.cunit

0 comments on commit 9478ea0

Please sign in to comment.