summaryrefslogtreecommitdiff
path: root/pint/testsuite/test_quantity.py
diff options
context:
space:
mode:
Diffstat (limited to 'pint/testsuite/test_quantity.py')
-rw-r--r--pint/testsuite/test_quantity.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pint/testsuite/test_quantity.py b/pint/testsuite/test_quantity.py
index 8fb712a..18a56ab 100644
--- a/pint/testsuite/test_quantity.py
+++ b/pint/testsuite/test_quantity.py
@@ -1050,10 +1050,10 @@ class TestQuantityBasicMath(QuantityTestCase):
zy = self.Q_(fun(y.magnitude), "meter")
rx = fun(x)
ry = fun(y)
- assert rx == zx, "while testing {0}".format(fun)
- assert ry == zy, "while testing {0}".format(fun)
- assert rx is not zx, "while testing {0}".format(fun)
- assert ry is not zy, "while testing {0}".format(fun)
+ assert rx == zx, f"while testing {fun}"
+ assert ry == zy, f"while testing {fun}"
+ assert rx is not zx, f"while testing {fun}"
+ assert ry is not zy, f"while testing {fun}"
def test_quantity_float_complex(self):
x = self.Q_(-4.2, None)