Group :: Development/Python3
RPM: python3-module-unyt
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: unyt-alt-test-import.patch
Download
Download
diff --git a/unyt/__init__.py b/unyt/__init__.py
index a83476a..8664f5e 100644
--- a/unyt/__init__.py
+++ b/unyt/__init__.py
@@ -94,7 +94,10 @@ from unyt.array import ( # NOQA: F401
from unyt.unit_object import Unit, define_unit # NOQA: F401
from unyt.unit_registry import UnitRegistry # NOQA: F401
from unyt.unit_systems import UnitSystem # NOQA: F401
-from unyt.testing import assert_allclose_units # NOQA: F401
+try:
+ from unyt.testing import assert_allclose_units # NOQA: F401
+except ImportError:
+ pass
from unyt.dimensions import accepts, returns # NOQA: F401
try: