also check for stderr, add changelog entry

--HG--
branch : trunk
This commit is contained in:
holger krekel
2010-10-24 23:43:35 +02:00
parent b4210f3ae0
commit 603ff3a64f
4 changed files with 6 additions and 2 deletions
+3
View File
@@ -140,11 +140,14 @@ class TestGeneralUsage:
def test_issue93_initialnode_importing_capturing(self, testdir):
testdir.makeconftest("""
import sys
print ("should not be seen")
sys.stderr.write("stder42\\n")
""")
result = testdir.runpytest()
assert result.ret == 0
assert "should not be seen" not in result.stdout.str()
assert "stderr42" not in result.stderr.str()
def test_conftest_printing_shows_if_error(self, testdir):
testdir.makeconftest("""