We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56b3ed3 commit db2db75Copy full SHA for db2db75
pandas/tests/io/test_sql.py
@@ -1731,13 +1731,16 @@ class _TestMySQLAlchemy(object):
1731
@classmethod
1732
def connect(cls):
1733
url = 'mysql+{driver}://root@localhost/pandas_nosetest'
1734
- return sqlalchemy.create_engine(url.format(driver=cls.driver))
+ return sqlalchemy.create_engine(url.format(driver=cls.driver),
1735
+ connect_args=cls.connect_args)
1736
1737
1738
def setup_driver(cls):
1739
try:
1740
import pymysql # noqa
1741
cls.driver = 'pymysql'
1742
+ from pymysql.constants import CLIENT
1743
+ cls.connect_args= {'client_flag': CLIENT.MULTI_STATEMENTS}
1744
except ImportError:
1745
pytest.skip('pymysql not installed')
1746
0 commit comments