From 5d7393559c105232d37e5fd4ce002eb37b5a5baf Mon Sep 17 00:00:00 2001 From: Thibaut Le Page Date: Fri, 5 Jun 2020 10:41:13 +0200 Subject: [PATCH] test_version: support alpha/beta markers --- tests/functional/test_version.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/functional/test_version.py b/tests/functional/test_version.py index 6bd9ec8..5b74c4c 100644 --- a/tests/functional/test_version.py +++ b/tests/functional/test_version.py @@ -3,7 +3,9 @@ def test_version(): - expected_pattern = re.compile(r"\b [0-9]+ \. [0-9]+ \. [0-9]+ \b", re.X) + expected_pattern = re.compile( + r"\b [0-9]+ \. [0-9]+ \. [0-9]+ ([ab] [0-9]+)? \b", re.X + ) actual = ( subprocess.run(["transformer", "--version"], check=True, stdout=subprocess.PIPE) .stdout.strip()