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.
2 parents f3b9b21 + 90c00df commit dfa7131Copy full SHA for dfa7131
src/_pytest/config/__init__.py
@@ -51,6 +51,8 @@ def main(args=None, plugins=None):
51
:arg plugins: list of plugin objects to be auto-registered during
52
initialization.
53
"""
54
+ from _pytest.main import EXIT_USAGEERROR
55
+
56
try:
57
58
config = _prepareconfig(args, plugins)
@@ -69,7 +71,7 @@ def main(args=None, plugins=None):
69
71
tw = py.io.TerminalWriter(sys.stderr)
70
72
for msg in e.args:
73
tw.line("ERROR: {}\n".format(msg), red=True)
- return 4
74
+ return EXIT_USAGEERROR
75
76
77
class cmdline(object): # compatibility namespace
0 commit comments