-
Notifications
You must be signed in to change notification settings - Fork 48
Support the deprecation of asyncore in python 3.12 #260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
7fb07c4
ed2b244
34037ed
7148b87
6730c67
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,15 +6,22 @@ | |
|
||
from tests.integration import use_cluster | ||
from cassandra.cluster import Cluster, TwistedConnection | ||
from cassandra.io.asyncorereactor import AsyncoreConnection | ||
|
||
|
||
from cassandra.io.libevreactor import LibevConnection | ||
from cassandra.io.geventreactor import GeventConnection | ||
from cassandra.io.eventletreactor import EventletConnection | ||
from cassandra.io.asyncioreactor import AsyncioConnection | ||
supported_connection_classes = [LibevConnection, TwistedConnection] | ||
try: | ||
from cassandra.io.asyncorereactor import AsyncoreConnection | ||
supported_connection_classes += [AsyncoreConnection] | ||
except ImportError: | ||
pass | ||
|
||
#from cassandra.io.geventreactor import GeventConnection | ||
#from cassandra.io.eventletreactor import EventletConnection | ||
#from cassandra.io.asyncioreactor import AsyncioConnection | ||
|
||
supported_connection_classes = [AsyncoreConnection, LibevConnection, TwistedConnection] | ||
# need to run them with specific configuration like `gevent.monkey.patch_all()` or under async functions | ||
unsupported_connection_classes = [GeventConnection, AsyncioConnection, EventletConnection] | ||
# unsupported_connection_classes = [GeventConnection, AsyncioConnection, EventletConnection] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't immediately see why wouldn't There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Asyncio wasn't working at all when those tests were written, so I didn't introduce it now As for the comment, I rather not import the unused classes, it was for documenting only, and import of some of them now complicates things |
||
|
||
|
||
class ScyllaCloudConfigTests(TestCase): | ||
|
Uh oh!
There was an error while loading. Please reload this page.