CLI: Allow spaces in -p arguments

This commit is contained in:
Yannick PEROUX 2023-01-13 11:24:11 +01:00
parent 3ad4344656
commit e16690b642
No known key found for this signature in database
GPG Key ID: EFD281B583EA65C6
1 changed files with 1 additions and 0 deletions

View File

@ -697,6 +697,7 @@ class PytestPluginManager(PluginManager):
parg = opt[2:] parg = opt[2:]
else: else:
continue continue
parg = parg.strip()
if exclude_only and not parg.startswith("no:"): if exclude_only and not parg.startswith("no:"):
continue continue
self.consider_pluginarg(parg) self.consider_pluginarg(parg)