diff options
author | Keewis <keewis@posteo.de> | 2022-04-09 23:19:59 +0200 |
---|---|---|
committer | Keewis <keewis@posteo.de> | 2022-04-09 23:19:59 +0200 |
commit | a4c2279e9dba75fe07213c08371e62e415d11a9b (patch) | |
tree | 91011d3ba5ef9e75655c7e005bcde0ef31fba8e4 /pint/testsuite/test_quantity.py | |
parent | 24ec8bac8dc3a7a64c8632f98824679f953585c9 (diff) | |
download | pint-a4c2279e9dba75fe07213c08371e62e415d11a9b.tar.gz |
same for the units (although the magnitude format is ignored)
Diffstat (limited to 'pint/testsuite/test_quantity.py')
-rw-r--r-- | pint/testsuite/test_quantity.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/pint/testsuite/test_quantity.py b/pint/testsuite/test_quantity.py index b3bb8e7..196d0c3 100644 --- a/pint/testsuite/test_quantity.py +++ b/pint/testsuite/test_quantity.py @@ -5,7 +5,6 @@ import math import operator as op import pickle import warnings -from contextlib import contextmanager from unittest.mock import patch import pytest @@ -18,18 +17,10 @@ from pint import ( get_application_registry, ) from pint.compat import np -from pint.testsuite import QuantityTestCase, helpers +from pint.testsuite import QuantityTestCase, assert_no_warnings, helpers from pint.unit import UnitsContainer -@contextmanager -def assert_no_warnings(): - with warnings.catch_warnings(): - warnings.simplefilter("error") - - yield - - class FakeWrapper: # Used in test_upcast_type_rejection_on_creation def __init__(self, q): |