use config.getoption instead of deprecated config.getvalue

and adapt a few tests to also run against pytest-2.6.0.dev
This commit is contained in:
holger krekel
2014-05-14 08:13:56 +02:00
parent eb639d19ec
commit de377c1001
3 changed files with 7 additions and 7 deletions

View File

@@ -311,9 +311,9 @@ class TestTerminalReporting:
""")
result = testdir.runpytest("-n1", "-v")
result.stdout.fnmatch_lines_random([
"*PASS*test_pass_skip_fail.py:2: *test_ok*",
"*SKIP*test_pass_skip_fail.py:4: *test_skip*",
"*FAIL*test_pass_skip_fail.py:6: *test_func*",
"*PASS*test_pass_skip_fail.py?2*test_ok*",
"*SKIP*test_pass_skip_fail.py?4*test_skip*",
"*FAIL*test_pass_skip_fail.py?6*test_func*",
])
result.stdout.fnmatch_lines([
"*def test_func():",
@@ -328,7 +328,7 @@ class TestTerminalReporting:
""")
result = testdir.runpytest("-n1", "-v")
result.stdout.fnmatch_lines([
"*FAIL*test_fail_platinfo.py:1: *test_func*",
"*FAIL*test_fail_platinfo.py*1*test_func*",
"*0*Python*",
"*def test_func():",
"> assert 0",