fix some tests wrt to expecting output now that pytest does no

introduce unwanted "buffering" on "-s" calls.
This commit is contained in:
holger krekel
2013-09-27 12:28:34 +02:00
parent 684d7f8668
commit da7133d201
4 changed files with 13 additions and 13 deletions

View File

@@ -1993,12 +1993,12 @@ class TestContextManagerFixtureFuncs:
""")
result = testdir.runpytest("-s")
result.stdout.fnmatch_lines("""
setup
test1 1
teardown
setup
test2 1
teardown
*setup*
*test1 1*
*teardown*
*setup*
*test2 1*
*teardown*
""")
def test_scoped(self, testdir):
@@ -2016,10 +2016,10 @@ class TestContextManagerFixtureFuncs:
""")
result = testdir.runpytest("-s")
result.stdout.fnmatch_lines("""
setup
test1 1
test2 1
teardown
*setup*
*test1 1*
*test2 1*
*teardown*
""")
def test_setup_exception(self, testdir):