mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-30 19:46:25 +00:00
12 lines
360 B
Python
12 lines
360 B
Python
import re
|
|
|
|
|
|
def test_version():
|
|
"""Test version string"""
|
|
from tqdm import __version__
|
|
version_parts = re.split('[.-]', __version__)
|
|
assert 3 <= len(version_parts) # must have at least Major.minor.patch
|
|
try:
|
|
map(int, version_parts[:3])
|
|
except ValueError:
|
|
raise TypeError('Version Major.minor.patch must be 3 integers')
|