Remove __multicall__ warning and usages in testing

pluggy>=0.5 already warns about those
This commit is contained in:
Bruno Oliveira
2017-08-30 20:23:55 -03:00
parent 11ec6aeafb
commit 3dc0da9339
6 changed files with 21 additions and 41 deletions

View File

@@ -809,10 +809,12 @@ class TestConftestCustomization(object):
def test_customized_pymakemodule_issue205_subdir(self, testdir):
b = testdir.mkdir("a").mkdir("b")
b.join("conftest.py").write(_pytest._code.Source("""
def pytest_pycollect_makemodule(__multicall__):
mod = __multicall__.execute()
import pytest
@pytest.hookimpl(hookwrapper=True)
def pytest_pycollect_makemodule():
outcome = yield
mod = outcome.get_result()
mod.obj.hello = "world"
return mod
"""))
b.join("test_module.py").write(_pytest._code.Source("""
def test_hello():