summaryrefslogtreecommitdiff
path: root/test/dialect/mysql/test_dialect.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-07-09 16:04:07 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-07-09 16:04:07 -0400
commit2b85e80d75f58a7691533a44693378e28ead752c (patch)
treea30099e5221ab4f602705589ac205212617db9a0 /test/dialect/mysql/test_dialect.py
parent04e9a81136902862edfd23d63bfab8dfb0953cc3 (diff)
downloadsqlalchemy-2b85e80d75f58a7691533a44693378e28ead752c.tar.gz
- Changed the default value of "raise_on_warnings" to False for
MySQLconnector. This was set at True for some reason. The "buffered" flag unfortunately must stay at True as MySQLconnector does not allow a cursor to be closed unless all results are fully fetched. fixes #2515 - lots of MySQL tests seemed to not be hitting all backends, so we should be getting some mysqlconnector failures now
Diffstat (limited to 'test/dialect/mysql/test_dialect.py')
-rw-r--r--test/dialect/mysql/test_dialect.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/dialect/mysql/test_dialect.py b/test/dialect/mysql/test_dialect.py
index 2ff17f0f7..e6bad71a4 100644
--- a/test/dialect/mysql/test_dialect.py
+++ b/test/dialect/mysql/test_dialect.py
@@ -69,10 +69,11 @@ class DialectTest(fixtures.TestBase):
)[1]
eq_(kw['raise_on_warnings'], False)
+
kw = dialect.create_connect_args(
make_url("mysql+mysqlconnector://u:p@host/db")
)[1]
- eq_(kw['raise_on_warnings'], True)
+ assert "raise_on_warnings" not in kw
@testing.only_on('mysql')
def test_random_arg(self):
@@ -84,11 +85,11 @@ class DialectTest(fixtures.TestBase):
class SQLModeDetectionTest(fixtures.TestBase):
__only_on__ = 'mysql'
+ __backend__ = True
def _options(self, modes):
def connect(con, record):
cursor = con.cursor()
- print("DOING THiS:", "set sql_mode='%s'" % (",".join(modes)))
cursor.execute("set sql_mode='%s'" % (",".join(modes)))
e = engines.testing_engine(options={
'pool_events':[
@@ -131,6 +132,7 @@ class ExecutionTest(fixtures.TestBase):
"""Various MySQL execution special cases."""
__only_on__ = 'mysql'
+ __backend__ = True
def test_charset_caching(self):
engine = engines.testing_engine()