Skip to content

Commit

Permalink
Complete suffix handling coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Oct 1, 2019
1 parent 8a98469 commit 7fcd616
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_version.py
Expand Up @@ -18,6 +18,15 @@ def test_from_string_no_releaselevel(self, vi):
"""
assert vi == VersionInfo._from_version_string("19.2.0")

def test_suffix_is_preserved(self):
"""
If there is a suffix, it's preserved.
"""
assert (
"dev0"
== VersionInfo._from_version_string("19.2.0.dev0").releaselevel
)

@pytest.mark.skipif(
PY2, reason="Python 2 is too YOLO to care about comparability."
)
Expand Down

0 comments on commit 7fcd616

Please sign in to comment.