summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.com>2020-03-25 14:33:20 +0000
committerDiego Elio Pettenò <flameeyes@flameeyes.com>2020-03-25 14:33:20 +0000
commitc3cc24c64b78b2c524a9a3f369f2d3c2b1f8533d (patch)
treeb1d80981325469108b11ea660b49ca2705e1ca1b
parent46753eec69de32c69db60ffabf2990ca81db7608 (diff)
downloadsetuptools-scm-c3cc24c64b78b2c524a9a3f369f2d3c2b1f8533d.tar.gz
Avoid overriding the default tag_regex in tests.
This appears to test something different than test_config.test_tag_regex, but somehow also overrides the regular expression with a very old (3-groups) one. Remove the override and use the default regex instead (it works).
-rw-r--r--testing/test_version.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/testing/test_version.py b/testing/test_version.py
index a287a0d..459d24b 100644
--- a/testing/test_version.py
+++ b/testing/test_version.py
@@ -53,7 +53,6 @@ def test_next_semver(version, expected_next):
)
def test_tag_regex1(tag, expected):
config = Configuration()
- config.tag_regex = r"^(?P<prefix>v)?(?P<version>[^\+]+)(?P<suffix>.*)?$"
if "+" in tag:
# pytest bug wrt cardinality
with pytest.warns(UserWarning):