Skip to content

Commit

Permalink
Merge pull request #178 from mattwthompson/unyt-2.4-bugfix
Browse files Browse the repository at this point in the history
Update tests to raise a different exception than UnitDtypeError
  • Loading branch information
mattwthompson authored Oct 31, 2019
2 parents 97929ef + 8e2a31f commit 9977066
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
numpy
mbuild
unyt
unyt >= 2.4
boltons
2 changes: 1 addition & 1 deletion topology/tests/test_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_dtype(self):
[0.0, 0.0, 0.0, 0.0, 0.0], [[0.0, 0.0], [0.0, 0.0]],
['a', 'b', 'c'], ['a', 1, 1]])
def test_bad_pos_input(self, position):
with pytest.raises((u.exceptions.UnitDtypeError, ValueError)):
with pytest.raises((u.exceptions.InvalidUnitOperation, ValueError)):
Site(name='site', position=u.nm*position)

def test_equivalence(self):
Expand Down

0 comments on commit 9977066

Please sign in to comment.