diff --git a/tests/test_version.py b/tests/test_version.py index e8cccd0..4d9cf7a 100644 --- a/tests/test_version.py +++ b/tests/test_version.py @@ -4,5 +4,5 @@ def test_secsie_semver_syntax(): VERSION_EX = re.compile(r'^(?P0|[1-9]\d*)\.(?P0|[1-9]\d*)\.(?P0|[1-9]\d*)(?:-(?P(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$') - assert VERSION_EX.match(secsie.__version__.split('v')[1]) + assert VERSION_EX.match(secsie.__version__) # assert secsie.__version__ == 'v2.1.0'