Skip to content

Commit

Permalink
Merge pull request pytest-dev#5174 from blueyed/no-terminal
Browse files Browse the repository at this point in the history
Terminal plugin is not semi-essential anymore
  • Loading branch information
blueyed committed Apr 27, 2019
2 parents ac7ee40 + 6513301 commit ebc0cea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/_pytest/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def directory_arg(path, optname):
)

default_plugins = essential_plugins + (
"terminal", # Has essential options, but xdist uses -pno:terminal.
"terminal",
"debugging",
"unittest",
"capture",
Expand Down
10 changes: 6 additions & 4 deletions testing/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
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 == [""]

0 comments on commit ebc0cea

Please sign in to comment.