skip tests using 'capfd' funcarg but not having os.dup. cleanup issues and regen plugin docs.

--HG--
branch : trunk
This commit is contained in:
holger krekel
2009-12-30 11:16:20 +01:00
parent ae63605ac0
commit a15afb5e48
8 changed files with 42 additions and 43 deletions

View File

@@ -391,3 +391,16 @@ def test_setup_failure_does_not_kill_capturing(testdir):
"*ValueError(42)*",
"*1 error*"
])
def test_fdfuncarg_skips_on_no_osdup(testdir):
testdir.makepyfile("""
import os
del os.dup
def test_hello(capfd):
pass
""")
result = testdir.runpytest()
result.stdout.fnmatch_lines([
"*1 skipped*"
])