summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTyagdit <43397375+Tyagdit@users.noreply.github.com>2020-08-07 12:18:30 +0530
committerGitHub <noreply@github.com>2020-08-07 07:48:30 +0100
commit23dd96f5a6891fb13e298ea941bd457931421ffd (patch)
treea4900a30ab7dd1d2a14ae035c8fad393a0e1a364 /tests
parentd15025640e34d06b4915a2a2787ed627af1e7633 (diff)
downloadtox-git-23dd96f5a6891fb13e298ea941bd457931421ffd.tar.gz
Fix: accept hyphens in generative section names (#1647)
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/config/test_config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/config/test_config.py b/tests/unit/config/test_config.py
index 14847c7a..206fdc1c 100644
--- a/tests/unit/config/test_config.py
+++ b/tests/unit/config/test_config.py
@@ -865,10 +865,11 @@ class TestIniParser:
def test_expand_section_name(self, newconfig):
config = newconfig(
"""
- [testenv:custom-{one,two,three}-{four,five}-six]
+ [testenv:custom{,-one,-two,-three}-{four,five}-six]
""",
)
assert "testenv:custom-one-five-six" in config._cfg.sections
+ assert "testenv:custom-four-six" in config._cfg.sections
assert "testenv:custom-{one,two,three}-{four,five}-six" not in config._cfg.sections