Fixed #30117 -- Fixed SchemaEditor.quote_value() test for mysqlclient 1.4.0+.

This commit is contained in:
Mariusz Felisiak 2019-01-19 13:31:15 +01:00 committed by GitHub
parent 7eb4db8732
commit f05c02c4b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class SchemaEditorTests(TestCase):
('string', "'string'"),
(42, '42'),
(1.754, '1.754e0' if MySQLdb.version_info >= (1, 3, 14) else '1.754'),
(False, '0'),
(False, b'0' if MySQLdb.version_info >= (1, 4, 0) else '0'),
]
for value, expected in tested_values:
with self.subTest(value=value):