diff options
author | Hernan <hernan.grecco@gmail.com> | 2022-02-14 00:41:09 -0300 |
---|---|---|
committer | Hernan <hernan.grecco@gmail.com> | 2022-02-14 00:49:41 -0300 |
commit | 2f90d96694dbb2cc7eee81e36639f19741920328 (patch) | |
tree | c71054a2c0ec4dc1a8ad1287809de72b30bb7564 /pint/testsuite/test_systems.py | |
parent | 5403f46ecf636d0749cf54cddf725d177d60af61 (diff) | |
download | pint-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_systems.py')
-rw-r--r-- | pint/testsuite/test_systems.py | 1 |
1 files changed, 1 insertions, 0 deletions
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) |