Terminal plugin is not semi-essential anymore

Thanks to https://github.com/pytest-dev/pytest/pull/5138.
This commit is contained in:
Daniel Hahler 2019-04-27 03:39:00 +02:00
parent ac7ee40aaf
commit 65133018f3
2 changed files with 7 additions and 5 deletions

View File

@ -123,7 +123,7 @@ essential_plugins = (
)
default_plugins = essential_plugins + (
"terminal", # Has essential options, but xdist uses -pno:terminal.
"terminal",
"debugging",
"unittest",
"capture",

View File

@ -1232,8 +1232,10 @@ def test_config_blocked_default_plugins(testdir, plugin):
if plugin != "terminal":
result.stdout.fnmatch_lines(["* 1 passed in *"])
if plugin != "terminal": # fails to report due to its options being used elsewhere.
p = testdir.makepyfile("def test(): assert 0")
result = testdir.runpytest(str(p), "-pno:%s" % plugin)
assert result.ret == EXIT_TESTSFAILED
if plugin != "terminal":
result.stdout.fnmatch_lines(["* 1 failed in *"])
else:
assert result.stdout.lines == [""]