diff options
author | Miroslav Šedivý <6774676+eumiro@users.noreply.github.com> | 2021-01-08 21:07:25 +0100 |
---|---|---|
committer | Miroslav Šedivý <6774676+eumiro@users.noreply.github.com> | 2021-01-08 21:12:35 +0100 |
commit | 43753ac79bc43a161555ba8d8259c5bfcbcecc54 (patch) | |
tree | d8b61a0b310e0566a9b72a4416eca3cf7ca6cf7a | |
parent | 32b6ef749695181c24540df13c46ed18f781b73e (diff) | |
download | pint-43753ac79bc43a161555ba8d8259c5bfcbcecc54.tar.gz |
Remove redundant parentheses
-rw-r--r-- | pint/testsuite/test_issues.py | 2 | ||||
-rw-r--r-- | pint/testsuite/test_quantity.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pint/testsuite/test_issues.py b/pint/testsuite/test_issues.py index 6be33db..d33da6b 100644 --- a/pint/testsuite/test_issues.py +++ b/pint/testsuite/test_issues.py @@ -436,7 +436,7 @@ class TestIssues(QuantityTestCase): self.assertEqual("{:~}".format(1 * self.ureg("MiB")), "1 MiB") def test_issue468(self): - @ureg.wraps(("kg"), "meter") + @ureg.wraps("kg", "meter") def f(x): return x diff --git a/pint/testsuite/test_quantity.py b/pint/testsuite/test_quantity.py index 8b6a19e..c1db505 100644 --- a/pint/testsuite/test_quantity.py +++ b/pint/testsuite/test_quantity.py @@ -1478,8 +1478,8 @@ class TestOffsetUnitMath(QuantityTestCase, ParameterizedTestCase): (((10, "degC"), 0), [(1.0, ""), (1.0, "")]), (((10, "degC"), -1), ["error", (1 / (10 + 273.15), "kelvin**-1")]), (((10, "degC"), -2), ["error", (1 / (10 + 273.15) ** 2.0, "kelvin**-2")]), - (((0, "degC"), -2), ["error", (1 / (273.15) ** 2, "kelvin**-2")]), - (((10, "degC"), (2, "")), ["error", ((283.15) ** 2, "kelvin**2")]), + (((0, "degC"), -2), ["error", (1 / 273.15 ** 2, "kelvin**-2")]), + (((10, "degC"), (2, "")), ["error", (283.15 ** 2, "kelvin**2")]), (((10, "degC"), (10, "degK")), ["error", "error"]), (((10, "kelvin"), (2, "")), [(100.0, "kelvin**2"), (100.0, "kelvin**2")]), ((2, (2, "kelvin")), ["error", "error"]), |