Transfer warnings from workers to master

Fix #92
This commit is contained in:
Bruno Oliveira
2017-08-09 07:32:14 -03:00
parent 02754d84d3
commit d0474076e9
5 changed files with 25 additions and 0 deletions

View File

@@ -339,6 +339,18 @@ class TestTerminalReporting:
"E assert 0",
])
@pytest.mark.parametrize('n', ['-n0', '-n1'])
def test_logwarning(self, testdir, n):
testdir.makepyfile("""
import warnings
def test_func():
warnings.warn('this is a warning')
""")
result = testdir.runpytest(n)
result.stdout.fnmatch_lines([
"*this is a warning*",
])
def test_teardownfails_one_function(testdir):
p = testdir.makepyfile("""