Merge pull request #5174 from blueyed/no-terminal
Terminal plugin is not semi-essential anymore
This commit is contained in:
		
						commit
						ebc0cea226
					
				| 
						 | 
					@ -123,7 +123,7 @@ essential_plugins = (
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
default_plugins = essential_plugins + (
 | 
					default_plugins = essential_plugins + (
 | 
				
			||||||
    "terminal",  # Has essential options, but xdist uses -pno:terminal.
 | 
					    "terminal",
 | 
				
			||||||
    "debugging",
 | 
					    "debugging",
 | 
				
			||||||
    "unittest",
 | 
					    "unittest",
 | 
				
			||||||
    "capture",
 | 
					    "capture",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1232,8 +1232,10 @@ def test_config_blocked_default_plugins(testdir, plugin):
 | 
				
			||||||
    if plugin != "terminal":
 | 
					    if plugin != "terminal":
 | 
				
			||||||
        result.stdout.fnmatch_lines(["* 1 passed in *"])
 | 
					        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")
 | 
				
			||||||
        p = testdir.makepyfile("def test(): assert 0")
 | 
					    result = testdir.runpytest(str(p), "-pno:%s" % plugin)
 | 
				
			||||||
        result = testdir.runpytest(str(p), "-pno:%s" % plugin)
 | 
					    assert result.ret == EXIT_TESTSFAILED
 | 
				
			||||||
        assert result.ret == EXIT_TESTSFAILED
 | 
					    if plugin != "terminal":
 | 
				
			||||||
        result.stdout.fnmatch_lines(["* 1 failed in *"])
 | 
					        result.stdout.fnmatch_lines(["* 1 failed in *"])
 | 
				
			||||||
 | 
					    else:
 | 
				
			||||||
 | 
					        assert result.stdout.lines == [""]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue