summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2018-10-28 13:17:07 -0400
committerJason R. Coombs <jaraco@jaraco.com>2018-10-28 13:21:46 -0400
commite7b8aabd326470d0919de5f03f77d8c9018e0a2b (patch)
tree5b23f16a3fc25f0e47a473d4e13ef7933a11b677
parentb72e86857802b257cc72d420c706624daf5f97ec (diff)
downloadsetuptools-scm-bugfix/303-tag_regex.tar.gz
Add test capturing #303. See error message with 'tox -- --runxfail'bugfix/303-tag_regex
-rw-r--r--testing/test_git.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/test_git.py b/testing/test_git.py
index 11e2d7b..6c5471e 100644
--- a/testing/test_git.py
+++ b/testing/test_git.py
@@ -191,3 +191,18 @@ def test_git_feature_branch_increments_major(wd):
wd("git checkout -b feature/fun")
wd.commit_testfile()
assert wd.get_version(version_scheme="python-simplified-semver").startswith("1.1.0")
+
+
+@pytest.mark.xfail(reason="https://github.com/pypa/setuptools_scm/issues/303")
+@pytest.mark.issue("https://github.com/pypa/setuptools_scm/issues/303")
+def test_exclude(wd):
+ wd.commit_testfile()
+ wd("git tag apache-arrow-0.11.1")
+ wd.commit_testfile()
+ wd("git tag apache-arrow-js-0.9.9")
+ wd.commit_testfile()
+ assert wd.get_version(
+ tag_regex=r"^apache-arrow-([\.0-9]+)$",
+ ).startswith(
+ "0.11.1"
+ )