summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/suite
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-12-04 16:26:44 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2020-12-10 17:11:46 -0500
commit5f333762db4b72c604e44f20f86d171dc249b741 (patch)
tree9d70447db467bce735a1aaeadae89d290c60dffe /lib/sqlalchemy/testing/suite
parentc736eef8b35841af89ec19469aa496585efd3865 (diff)
downloadsqlalchemy-5f333762db4b72c604e44f20f86d171dc249b741.tar.gz
add aiomysql support
This is a re-gerrit of the original gerrit merged in Ia8ad3efe3b50ce75a3bed1e020e1b82acb5f2eda Reverted due to ongoing issues. Fixes: #5747 Change-Id: I2b57e76b817eed8f89457a2146b523a1cab656a8
Diffstat (limited to 'lib/sqlalchemy/testing/suite')
-rw-r--r--lib/sqlalchemy/testing/suite/test_results.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/sqlalchemy/testing/suite/test_results.py b/lib/sqlalchemy/testing/suite/test_results.py
index 9484d41d0..f31c7c137 100644
--- a/lib/sqlalchemy/testing/suite/test_results.py
+++ b/lib/sqlalchemy/testing/suite/test_results.py
@@ -114,9 +114,8 @@ class RowFetchTest(fixtures.TablesTest):
class PercentSchemaNamesTest(fixtures.TablesTest):
"""tests using percent signs, spaces in table and column names.
- This is a very fringe use case, doesn't work for MySQL
- or PostgreSQL. the requirement, "percent_schema_names",
- is marked "skip" by default.
+ This didn't work for PostgreSQL / MySQL drivers for a long time
+ but is now supported.
"""
@@ -233,6 +232,8 @@ class ServerSideCursorsTest(
elif self.engine.dialect.driver == "pymysql":
sscursor = __import__("pymysql.cursors").cursors.SSCursor
return isinstance(cursor, sscursor)
+ elif self.engine.dialect.driver == "aiomysql":
+ return cursor.server_side
elif self.engine.dialect.driver == "mysqldb":
sscursor = __import__("MySQLdb.cursors").cursors.SSCursor
return isinstance(cursor, sscursor)