summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2023-01-17 22:18:04 +0100
committerRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2023-01-17 22:18:04 +0100
commit3b09bb5935accc8a7dfd4ceaa1ef0c0c576f27ec (patch)
tree365da79ada50b85df957cee3b9536c49187fdbb4 /testing
parent8313086a9f704991b9994432befd3857ada5bd21 (diff)
downloadsetuptools-scm-3b09bb5935accc8a7dfd4ceaa1ef0c0c576f27ec.tar.gz
git tests: expect main as possible default branch
Diffstat (limited to 'testing')
-rw-r--r--testing/test_git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/test_git.py b/testing/test_git.py
index 412ce75..2dc8b0d 100644
--- a/testing/test_git.py
+++ b/testing/test_git.py
@@ -149,7 +149,7 @@ def test_version_from_git(wd: WorkDir) -> None:
assert wd.version == "0.1.dev0"
parsed = git.parse(str(wd.cwd), git.DEFAULT_DESCRIBE)
- assert parsed is not None and parsed.branch == "master"
+ assert parsed is not None and parsed.branch in ("master", "main")
wd.commit_testfile()
assert wd.version.startswith("0.1.dev1+g")