From 2f90d96694dbb2cc7eee81e36639f19741920328 Mon Sep 17 00:00:00 2001 From: Hernan Date: Mon, 14 Feb 2022 00:41:09 -0300 Subject: 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. --- pint/testsuite/test_systems.py | 1 + 1 file changed, 1 insertion(+) (limited to 'pint/testsuite/test_systems.py') diff --git a/pint/testsuite/test_systems.py b/pint/testsuite/test_systems.py index 8c54d8f..fa7aff1 100644 --- a/pint/testsuite/test_systems.py +++ b/pint/testsuite/test_systems.py @@ -163,6 +163,7 @@ class TestGroup: assert c == frozenset([ureg.inch, ureg.yard]) +# TODO: do not subclass from QuantityTestCase class TestSystem(QuantityTestCase): def _build_empty_reg_root(self): ureg = UnitRegistry(None) -- cgit v1.2.1