1 # Copyright © 2020 Arm Ltd. All rights reserved.
3 # SPDX-License-Identifier: MIT
8 def test_rel_version():
9 import pyarmnn._version as v
11 assert "dev" not in v.__version__
15 def test_dev_version():
16 import pyarmnn._version as v
17 os.environ["PYARMNN_DEV_VER"] = "1"
21 assert "22.0.0.dev1" == v.__version__
23 del os.environ["PYARMNN_DEV_VER"]
27 def test_arm_version_not_affected():
28 import pyarmnn._version as v
29 os.environ["PYARMNN_DEV_VER"] = "1"
33 assert "22.0.0" == v.__arm_ml_version__
35 del os.environ["PYARMNN_DEV_VER"]