Merge branch 'master' into features

This commit is contained in:
Bruno Oliveira
2017-07-20 22:10:58 -03:00
4 changed files with 22 additions and 2 deletions

View File

@@ -355,7 +355,7 @@ class TestLoggingInteraction(object):
""")
result = testdir.runpytest_subprocess(
p, "--traceconfig",
"-p", "no:capturelog")
"-p", "no:capturelog", "-p", "no:hypothesis", "-p", "no:hypothesispytest")
assert result.ret != 0
result.stdout.fnmatch_lines([
"*hello432*",
@@ -1040,6 +1040,15 @@ def test_capture_not_started_but_reset():
capsys.stop_capturing()
def test_using_capsys_fixture_works_with_sys_stdout_encoding(capsys):
test_text = 'test text'
print(test_text.encode(sys.stdout.encoding, 'replace'))
(out, err) = capsys.readouterr()
assert out
assert err == ''
@needsosdup
@pytest.mark.parametrize('use', [True, False])
def test_fdcapture_tmpfile_remains_the_same(tmpfile, use):