Skip to content

Commit

Permalink
Refs #30013 -- Fixed SchemaEditor.quote_value() test for mysqlclient …
Browse files Browse the repository at this point in the history
…1.3.14+.
  • Loading branch information
timgraham committed Dec 5, 2018
1 parent 23eb75e commit 7fb713e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/backends/mysql/test_schema.py
Expand Up @@ -7,11 +7,12 @@
@unittest.skipUnless(connection.vendor == 'mysql', 'MySQL tests')
class SchemaEditorTests(TestCase):
def test_quote_value(self):
import MySQLdb
editor = connection.schema_editor()
tested_values = [
('string', "'string'"),
(42, '42'),
(1.754, '1.754'),
(1.754, '1.754e0' if MySQLdb.version_info >= (1, 3, 14) else '1.754'),
(False, '0'),
]
for value, expected in tested_values:
Expand Down

0 comments on commit 7fb713e

Please sign in to comment.