diff options
author | Hernan Grecco <hgrecco@gmail.com> | 2023-04-29 20:36:04 -0300 |
---|---|---|
committer | Hernan Grecco <hgrecco@gmail.com> | 2023-04-29 20:36:04 -0300 |
commit | 10a2311992a3ad89b9968cd102edb67646a84412 (patch) | |
tree | b36d826222c0d4079143fb4a758afb56cc5d8c2c /pint/testsuite/test_compat_upcast.py | |
parent | b63697287ba1e5de7300890ea4c03b8781b04863 (diff) | |
download | pint-10a2311992a3ad89b9968cd102edb67646a84412.tar.gz |
Run refurb --python-version 3.9 in pint/testsuite
Diffstat (limited to 'pint/testsuite/test_compat_upcast.py')
-rw-r--r-- | pint/testsuite/test_compat_upcast.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pint/testsuite/test_compat_upcast.py b/pint/testsuite/test_compat_upcast.py index 56996b9..c8266f7 100644 --- a/pint/testsuite/test_compat_upcast.py +++ b/pint/testsuite/test_compat_upcast.py @@ -1,3 +1,4 @@ +import operator import pytest # Conditionally import NumPy and any upcast type libraries @@ -49,9 +50,9 @@ def test_quantification(module_registry, ds): @pytest.mark.parametrize( "op", [ - lambda x, y: x + y, + operator.add, lambda x, y: x - (-y), - lambda x, y: x * y, + operator.mul, lambda x, y: x / (y**-1), ], ) |