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 33796c8 commit c9cad79Copy full SHA for c9cad79
_pytest/main.py
@@ -704,10 +704,9 @@ def _parsearg(self, arg):
704
path = self.config.invocation_dir.join(relpath, abs=True)
705
if not path.check():
706
if self.config.option.pyargs:
707
- msg = "file or package not found: "
+ raise pytest.UsageError("file or package not found: " + arg + " (missing __init__.py?)")
708
else:
709
- msg = "file not found: "
710
- raise pytest.UsageError(msg + arg)
+ raise pytest.UsageError("file not found: " + arg)
711
parts[0] = path
712
return parts
713
0 commit comments