pytestconfig is now session-config as it is the same object during the
whole test run. Fixes issue370
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user