File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212def test_version ():
1313 """Test that installed Python version matches C++ version.
1414
15- C++ DOLFINx follows `major.minor.micro` with a development version
16- denoted `major.minor.micro.0`.
17-
1815 Python DOLFINx follows `major.minor.micro` with the append of `.devx`
19- and `.postx` denoting development and post-release.
16+ and `.postx` denoting development and postrelease, respectively.
17+
18+ C++ DOLFINx follows `major.minor.micro` with a development denoted
19+ `major.minor.micro.0`. postrelease cannot be reflected in C++,
20+ any changes to the C++ code should bump micro.
2021 """
2122 cpp_version = parse (dolfinx .cpp .__version__ )
2223 python_version = parse (dolfinx .__version__ )
@@ -25,5 +26,5 @@ def test_version():
2526 assert cpp_version .minor == python_version .minor
2627 assert cpp_version .micro == python_version .micro
2728
28- cpp_is_dev = True if len (cpp_version .release ) == 4 else False
29- assert cpp_is_dev == python_version .is_devrelease
29+ cpp_is_devrelease = True if len (cpp_version .release ) == 4 else False
30+ assert cpp_is_devrelease == python_version .is_devrelease
You can’t perform that action at this time.
0 commit comments