Skip to content

Commit 7bfa678

Browse files
committed
Refinements.
1 parent 9beb299 commit 7bfa678

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

python/test/unit/common/test_version.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
def 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

0 commit comments

Comments
 (0)