summaryrefslogtreecommitdiff
path: root/pint/testsuite/test_numpy.py
diff options
context:
space:
mode:
authorHernan Grecco <hgrecco@gmail.com>2023-04-29 20:36:04 -0300
committerHernan Grecco <hgrecco@gmail.com>2023-04-29 20:36:04 -0300
commit10a2311992a3ad89b9968cd102edb67646a84412 (patch)
treeb36d826222c0d4079143fb4a758afb56cc5d8c2c /pint/testsuite/test_numpy.py
parentb63697287ba1e5de7300890ea4c03b8781b04863 (diff)
downloadpint-10a2311992a3ad89b9968cd102edb67646a84412.tar.gz
Run refurb --python-version 3.9 in pint/testsuite
Diffstat (limited to 'pint/testsuite/test_numpy.py')
-rw-r--r--pint/testsuite/test_numpy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pint/testsuite/test_numpy.py b/pint/testsuite/test_numpy.py
index 1e0b928..0e96c77 100644
--- a/pint/testsuite/test_numpy.py
+++ b/pint/testsuite/test_numpy.py
@@ -303,7 +303,7 @@ class TestNumpyMathematicalFunctions(TestNumpyMethods):
@helpers.requires_array_function_protocol()
def test_fix(self):
- helpers.assert_quantity_equal(np.fix(3.14 * self.ureg.m), 3.0 * self.ureg.m)
+ helpers.assert_quantity_equal(np.fix(3.13 * self.ureg.m), 3.0 * self.ureg.m)
helpers.assert_quantity_equal(np.fix(3.0 * self.ureg.m), 3.0 * self.ureg.m)
helpers.assert_quantity_equal(
np.fix([2.1, 2.9, -2.1, -2.9] * self.ureg.m),
@@ -505,7 +505,7 @@ class TestNumpyMathematicalFunctions(TestNumpyMethods):
arr = np.array(range(3), dtype=float)
q = self.Q_(arr, "meter")
- for op_ in [op.pow, op.ipow, np.power]:
+ for op_ in (op.pow, op.ipow, np.power):
q_cp = copy.copy(q)
with pytest.raises(DimensionalityError):
op_(2.0, q_cp)