[svn r63339] undo rev 63000 so that there is only one method now for funcargs

--HG--
branch : trunk
This commit is contained in:
hpk
2009-03-26 10:26:09 +01:00
parent 8230a39b39
commit 92e354a486
5 changed files with 14 additions and 68 deletions

View File

@@ -2,10 +2,7 @@ import os
class MonkeypatchPlugin:
""" setattr-monkeypatching with automatical reversal after test. """
def pytest_configure(self, config):
config.register_funcargmaker("monkeypatch", self.argmaker)
def argmaker(self, pyfuncitem):
def pytest_funcarg_monkeypatch(self, pyfuncitem):
monkeypatch = MonkeyPatch()
pyfuncitem.addfinalizer(monkeypatch.finalize)
return monkeypatch