Skip to content

Commit

Permalink
pre commit
Browse files Browse the repository at this point in the history
  • Loading branch information
breznychenko committed Aug 19, 2024
1 parent 25af144 commit df25f33
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pint/testsuite/test_quantity.py
Original file line number Diff line number Diff line change
Expand Up @@ -2015,9 +2015,8 @@ def test_offset_autoconvert_gt_zero(self):
with pytest.raises(DimensionalityError):
q1.__gt__(ureg.Quantity(0, ""))


def test_types(self):
quantity = self.Q_(1.0, "m")
assert type(quantity) == self.Q_
assert type(quantity.units) == self.ureg.Unit
assert type(quantity.m) == float
assert isinstance(quantity, self.Q_)
assert isinstance(quantity.units, self.ureg.Unit)
assert isinstance(quantity.m, float)

0 comments on commit df25f33

Please sign in to comment.