Skip to content

Commit

Permalink
test_version: support alpha/beta markers
Browse files Browse the repository at this point in the history
  • Loading branch information
thilp committed Jun 5, 2020
1 parent 521f868 commit 5d73935
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/functional/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5d73935

Please sign in to comment.