Skip to content

Commit 7fcd616

Browse files
committed
Complete suffix handling coverage
1 parent 8a98469 commit 7fcd616

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_version.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ def test_from_string_no_releaselevel(self, vi):
1818
"""
1919
assert vi == VersionInfo._from_version_string("19.2.0")
2020

21+
def test_suffix_is_preserved(self):
22+
"""
23+
If there is a suffix, it's preserved.
24+
"""
25+
assert (
26+
"dev0"
27+
== VersionInfo._from_version_string("19.2.0.dev0").releaselevel
28+
)
29+
2130
@pytest.mark.skipif(
2231
PY2, reason="Python 2 is too YOLO to care about comparability."
2332
)

0 commit comments

Comments
 (0)