Make default connection logic detect gevent patching, not just module

Environment

None

Pull Requests

None

Activity

Show:
Adam Holmberg
May 14, 2015, 1:28 PM
Michael Penick
May 15, 2015, 9:01 PM

+1

Adam Holmberg
May 26, 2015, 4:56 PM

Automating this test seems pointless since it will just be a reproduction of the logic in cassandra/cluster.py. It would also be difficult since it depends on how the tests are run, and would need to change system state.

I tested manually as follows:

--> <class 'cassandra.io.libevreactor.LibevConnection'>

--> <class 'cassandra.io.libevreactor.LibevConnection'>

--> <class 'cassandra.io.geventreactor.GeventConnection'>

Also ran debugger from PyCharm to make sure original issue was resolved.

Fixed

Assignee

Adam Holmberg

Reporter

Adam Holmberg

Fix versions

Labels

None

Reproduced in

None

PM Priority

None

External issue ID

None

Doc Impact

None

Reviewer

None

Size

None

Pull Request

None

Affects versions

Priority

Minor
Configure