fix #6341 - disallow session/config in Node.from_parent

This commit is contained in:
Ronny Pfannschmidt
2019-12-31 20:20:28 +01:00
parent 466bbbf8e8
commit 8ba0b7bc2a
6 changed files with 49 additions and 9 deletions

View File

@@ -284,7 +284,7 @@ class TestFunction:
session = testdir.Session.from_config(config)
session._fixturemanager = FixtureManager(session)
return pytest.Function.from_parent(config=config, parent=session, **kwargs)
return pytest.Function.from_parent(parent=session, **kwargs)
def test_function_equality(self, testdir, tmpdir):
def func1():