diff options
author | Tyagdit <43397375+Tyagdit@users.noreply.github.com> | 2020-08-07 12:18:30 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-07 07:48:30 +0100 |
commit | 23dd96f5a6891fb13e298ea941bd457931421ffd (patch) | |
tree | a4900a30ab7dd1d2a14ae035c8fad393a0e1a364 /tests | |
parent | d15025640e34d06b4915a2a2787ed627af1e7633 (diff) | |
download | tox-git-23dd96f5a6891fb13e298ea941bd457931421ffd.tar.gz |
Fix: accept hyphens in generative section names (#1647)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/config/test_config.py | 3 |
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 |