eugeniy / pytest-tornado

A py.test plugin providing fixtures and markers to simplify testing of asynchronous tornado applications.
Apache License 2.0
121 stars 34 forks source link

Add an option to the io_loop fixture to configure ioloop maker #8

Open eugeniy opened 9 years ago

eugeniy commented 9 years ago

Needed for apps that rely on IOLoop.instance()

Currently, IOLoop() is created, this should be overridable.

holljen commented 8 years ago

Yes please, I'd like this. I'm using zmq in addition to tornado and it relies on IOLoop.instance(). I've solved it by calling io_loop.install() but it isn't very pretty :)