summaryrefslogtreecommitdiff
path: root/pint/testsuite/test_measurement.py
diff options
context:
space:
mode:
authorHernan <hernan.grecco@gmail.com>2022-02-14 00:41:09 -0300
committerHernan <hernan.grecco@gmail.com>2022-02-14 00:49:41 -0300
commit2f90d96694dbb2cc7eee81e36639f19741920328 (patch)
treec71054a2c0ec4dc1a8ad1287809de72b30bb7564 /pint/testsuite/test_measurement.py
parent5403f46ecf636d0749cf54cddf725d177d60af61 (diff)
downloadpint-2f90d96694dbb2cc7eee81e36639f19741920328.tar.gz
Update testsuite to avoid a complete fail when the UnitRegistry is faulty
Under no circunstances a registry should be instantiated in a module outside a fixture to avoid error during collection. This precludes running simple tests that do not depend on the registry.
Diffstat (limited to 'pint/testsuite/test_measurement.py')
-rw-r--r--pint/testsuite/test_measurement.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pint/testsuite/test_measurement.py b/pint/testsuite/test_measurement.py
index 61427cd..fcc98a0 100644
--- a/pint/testsuite/test_measurement.py
+++ b/pint/testsuite/test_measurement.py
@@ -4,6 +4,7 @@ from pint import DimensionalityError
from pint.testsuite import QuantityTestCase, helpers
+# TODO: do not subclass from QuantityTestCase
@helpers.requires_not_uncertainties()
class TestNotMeasurement(QuantityTestCase):
def test_instantiate(self):
@@ -12,6 +13,7 @@ class TestNotMeasurement(QuantityTestCase):
M_(4.0, 0.1, "s")
+# TODO: do not subclass from QuantityTestCase
@helpers.requires_uncertainties()
class TestMeasurement(QuantityTestCase):
def test_simple(self):