[py-dev] pytest-twisted 1.0
Ralf Schmitt
ralf at systemexit.de
Mon Oct 22 10:44:46 CEST 2012
holger krekel <holger at merlinux.eu> writes:
>
> interesting little plugin. On a general note, using "pytest_configure"
> is not the best way to setup global state. It's better to do this::
>
> @pytest.fixture(scope="session", autouse=True):
> def setup_twisted_reactor(request):
> ...
> request.addfinalizer(...)
thanks for your comments. I'll try to implement that in the next
version. BTW, an early version of this plugin was once part of pylib :)
--
Cheers
Ralf
More information about the Pytest-dev
mailing list