pytestconfig is now session-config as it is the same object during the

whole test run.  Fixes issue370
This commit is contained in:
holger krekel
2013-10-21 13:33:36 +02:00
parent 2eebe6c677
commit bc8c4b3ebd
3 changed files with 10 additions and 3 deletions

View File

@@ -150,3 +150,7 @@ class TestReRunTests:
result.stdout.fnmatch_lines("""
*2 passed*
""")
def test_pytestconfig_is_session_scoped():
from _pytest.python import pytestconfig
assert pytestconfig._pytestfixturefunction.scope == "session"