Skip to content

Commit d5320fe

Browse files
olastrzslayoo
andauthored
New assertion to ensure version compatibility between PySDM and PySDM_examples (#1733)
Co-authored-by: Sylwester Arabas <sylwester.arabas@agh.edu.pl>
1 parent 9c4ce2f commit d5320fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/PySDM_examples/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
"""
44

55
from importlib.metadata import PackageNotFoundError, version
6+
import PySDM
67

78
try:
89
__version__ = version(__name__)
910
except PackageNotFoundError:
1011
# package is not installed
1112
pass
13+
14+
assert PySDM.__version__ == __version__

0 commit comments

Comments
 (0)