diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-10-12 20:14:32 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-10-12 20:14:32 -0400 |
| commit | 50d2432a9efa65c9798ef207e3f887cb5c0071e1 (patch) | |
| tree | 121fe435193bde0586b37f1cf7f813b17badbe9f /test/sql/test_query.py | |
| parent | 0426d174e4a608cb09878fe18185b2ae853243ad (diff) | |
| download | sqlalchemy-50d2432a9efa65c9798ef207e3f887cb5c0071e1.tar.gz | |
- Mysqlconnector as of version 2.0, probably as a side effect of
the python 3 merge, now does not expect percent signs (e.g.
as used as the modulus operator and others) to be doubled,
even when using the "pyformat" bound parameter format (this
change is not documented by Mysqlconnector). The dialect now
checks for py2k and for mysqlconnector less than version 2.0
when detecting if the modulus operator should be rendered as
``%%`` or ``%``.
- Unicode SQL is now passed for MySQLconnector version 2.0 and above;
for Py2k and MySQL < 2.0, strings are encoded. Note that mysqlconnector
as of 2.0.1 appears to have a bug with unicode DDL on py2k, so the tests here
are skipping until we observe it's fixed.
- take out profiling on mysqlconnector, callcounts vary too much with
its current development speed
Diffstat (limited to 'test/sql/test_query.py')
| -rw-r--r-- | test/sql/test_query.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/test/sql/test_query.py b/test/sql/test_query.py index 430c3fe7c..0ae1b0b34 100644 --- a/test/sql/test_query.py +++ b/test/sql/test_query.py @@ -570,9 +570,6 @@ class QueryTest(fixtures.TestBase): ): eq_(expr.execute().fetchall(), result) - @testing.fails_if( - lambda: util.py3k and testing.against('mysql+mysqlconnector'), - "bug in mysqlconnector") @testing.requires.mod_operator_as_percent_sign @testing.emits_warning('.*now automatically escapes.*') def test_percents_in_text(self): @@ -2510,9 +2507,6 @@ class OperatorTest(fixtures.TestBase): metadata.drop_all() # TODO: seems like more tests warranted for this setup. - @testing.fails_if( - lambda: util.py3k and testing.against('mysql+mysqlconnector'), - "bug in mysqlconnector") def test_modulo(self): eq_( select([flds.c.intcol % 3], |
