Remove deprecated PyCollector.makeitem

Fix #4535
This commit is contained in:
Bruno Oliveira
2018-12-11 18:24:02 -02:00
parent bb363c8ff2
commit e3d30f8ebf
6 changed files with 14 additions and 38 deletions

View File

@@ -808,7 +808,7 @@ class TestConftestCustomization(object):
modcol = testdir.getmodulecol("def _hello(): pass")
values = []
monkeypatch.setattr(
pytest.Module, "makeitem", lambda self, name, obj: values.append(name)
pytest.Module, "_makeitem", lambda self, name, obj: values.append(name)
)
values = modcol.collect()
assert "_hello" not in values