From 95c28265a6d61a23a239d7b437891c8318b06445 Mon Sep 17 00:00:00 2001 From: "ralf@brainbot.com" Date: Wed, 3 Jun 2009 15:22:14 +0200 Subject: [PATCH] fix generator tests --HG-- branch : trunk --- contrib/pytest_twisted/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/pytest_twisted/__init__.py b/contrib/pytest_twisted/__init__.py index 75a631745..9db807751 100644 --- a/contrib/pytest_twisted/__init__.py +++ b/contrib/pytest_twisted/__init__.py @@ -100,6 +100,7 @@ class TwistedPlugin: def pytest_pyfunc_call(self, pyfuncitem, *args, **kwargs): if self.twisted: + args = args or pyfuncitem._args # generator tests # XXX1 kwargs? # XXX2 we want to delegate actual call to next plugin # (which may want to produce test coverage, etc.)