fix generator tests

--HG--
branch : trunk
This commit is contained in:
ralf@brainbot.com 2009-06-03 15:22:14 +02:00
parent 4c42bf7f57
commit 95c28265a6
1 changed files with 1 additions and 0 deletions

View File

@ -100,6 +100,7 @@ class TwistedPlugin:
def pytest_pyfunc_call(self, pyfuncitem, *args, **kwargs): def pytest_pyfunc_call(self, pyfuncitem, *args, **kwargs):
if self.twisted: if self.twisted:
args = args or pyfuncitem._args # generator tests
# XXX1 kwargs? # XXX1 kwargs?
# XXX2 we want to delegate actual call to next plugin # XXX2 we want to delegate actual call to next plugin
# (which may want to produce test coverage, etc.) # (which may want to produce test coverage, etc.)