summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/backends/mysql/test_schema.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/backends/mysql/test_schema.py b/tests/backends/mysql/test_schema.py
index 39a66fdfd7..27c24df4ee 100644
--- a/tests/backends/mysql/test_schema.py
+++ b/tests/backends/mysql/test_schema.py
@@ -7,11 +7,12 @@ from django.test import TestCase
@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: