diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-03 06:00:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-03 06:00:53 +0000 |
commit | c2c1a8ed4812d9ae242cc764715bf730af065571 (patch) | |
tree | 8d0d538e9f1e0b74b36d16cee0ea009686c7af43 /tests/languages/golang_test.py | |
parent | Adding upstream version 3.0.2. (diff) | |
download | pre-commit-c2c1a8ed4812d9ae242cc764715bf730af065571.tar.xz pre-commit-c2c1a8ed4812d9ae242cc764715bf730af065571.zip |
Adding upstream version 3.0.3.upstream/3.0.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/languages/golang_test.py')
-rw-r--r-- | tests/languages/golang_test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/languages/golang_test.py b/tests/languages/golang_test.py index 0219261..7c04255 100644 --- a/tests/languages/golang_test.py +++ b/tests/languages/golang_test.py @@ -1,9 +1,9 @@ from __future__ import annotations -import re from unittest import mock import pytest +import re_assert import pre_commit.constants as C from pre_commit.languages import golang @@ -40,4 +40,4 @@ def test_golang_infer_go_version_default(): version = ACTUAL_INFER_GO_VERSION(C.DEFAULT) assert version != C.DEFAULT - assert re.match(r'^\d+\.\d+\.\d+$', version) + re_assert.Matches(r'^\d+\.\d+(?:\.\d+)?$').assert_matches(version) |