diff --git a/roles/tox/library/tox_install_sibling_packages.py b/roles/tox/library/tox_install_sibling_packages.py index ed5256532..05e378fb2 100644 --- a/roles/tox/library/tox_install_sibling_packages.py +++ b/roles/tox/library/tox_install_sibling_packages.py @@ -319,7 +319,7 @@ def main(): if not discard: # Normal operation, tested first for efficiency tox_clean_config += line - elif line.startswith('['): + elif line.startswith('[') and line.rstrip().endswith(']'): # Once we see a section heading, stop discarding discard = False tox_clean_config += line