Skip to content

Commit ebc0cea

Browse files
authored
Merge pull request #5174 from blueyed/no-terminal
Terminal plugin is not semi-essential anymore
2 parents ac7ee40 + 6513301 commit ebc0cea

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/_pytest/config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def directory_arg(path, optname):
123123
)
124124

125125
default_plugins = essential_plugins + (
126-
"terminal", # Has essential options, but xdist uses -pno:terminal.
126+
"terminal",
127127
"debugging",
128128
"unittest",
129129
"capture",

testing/test_config.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,8 +1232,10 @@ def test_config_blocked_default_plugins(testdir, plugin):
12321232
if plugin != "terminal":
12331233
result.stdout.fnmatch_lines(["* 1 passed in *"])
12341234

1235-
if plugin != "terminal": # fails to report due to its options being used elsewhere.
1236-
p = testdir.makepyfile("def test(): assert 0")
1237-
result = testdir.runpytest(str(p), "-pno:%s" % plugin)
1238-
assert result.ret == EXIT_TESTSFAILED
1235+
p = testdir.makepyfile("def test(): assert 0")
1236+
result = testdir.runpytest(str(p), "-pno:%s" % plugin)
1237+
assert result.ret == EXIT_TESTSFAILED
1238+
if plugin != "terminal":
12391239
result.stdout.fnmatch_lines(["* 1 failed in *"])
1240+
else:
1241+
assert result.stdout.lines == [""]

0 commit comments

Comments
 (0)