We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 187b971 commit f56fd50Copy full SHA for f56fd50
_pytest/config.py
@@ -1257,9 +1257,13 @@ def get_common_ancestor(args):
1257
1258
1259
def get_dirs_from_args(args):
1260
- return [d for d in (py.path.local(x) for x in args
1261
- if not str(x).startswith("-"))
1262
- if d.exists()]
+ possible_dirs = [
+ py.path.local(str(arg).split('::')[0])
+ for arg in args
1263
+ if not str(arg).startswith('-')
1264
+ ]
1265
+
1266
+ return [d for d in possible_dirs if d.exists()]
1267
1268
1269
def determine_setup(inifile, args, warnfunc=None):
0 commit comments