Skip to content

Commit ed8d8c1

Browse files
authored
New assertion to ensure version compatibility between PyMPDATA and PyMPDATA_examples (thanks @olastrz) (#635)
1 parent 6932e8f commit ed8d8c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/PyMPDATA_examples/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44

55
from importlib.metadata import PackageNotFoundError, version
66

7+
import PyMPDATA
8+
79
try:
810
__version__ = version(__name__)
911
except PackageNotFoundError:
1012
# package is not installed
1113
pass
14+
15+
assert PyMPDATA.__version__ == __version__

0 commit comments

Comments
 (0)