summaryrefslogtreecommitdiff
path: root/testing/test_config.py
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-04-27 03:39:00 +0200
committerDaniel Hahler <git@thequod.de>2019-04-27 03:39:00 +0200
commit65133018f3e86f60b5d8bfe13493920a415810dd (patch)
tree9ee84b0e6cd3892f43af4b59feebb8925e35ee75 /testing/test_config.py
parentac7ee40aafa675fedf1f9300306d862520f40295 (diff)
downloadpytest-65133018f3e86f60b5d8bfe13493920a415810dd.tar.gz
Terminal plugin is not semi-essential anymore
Thanks to https://github.com/pytest-dev/pytest/pull/5138.
Diffstat (limited to 'testing/test_config.py')
-rw-r--r--testing/test_config.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/testing/test_config.py b/testing/test_config.py
index f5ebdad5a..ecb8fd403 100644
--- a/testing/test_config.py
+++ b/testing/test_config.py
@@ -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 == [""]