From 70aeb6ab016612ddb50be75a3210250a184200ec Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Sat, 19 Jan 2019 13:31:15 +0100 Subject: [PATCH] [2.2.x] Fixed #30117 -- Fixed SchemaEditor.quote_value() test for mysqlclient 1.4.0+. Backport of f05c02c4b8d4e423e57d453c4bd699dc5ff7eaa7 from master --- tests/backends/mysql/test_schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/backends/mysql/test_schema.py b/tests/backends/mysql/test_schema.py index 27c24df4eec..9f36274391c 100644 --- a/tests/backends/mysql/test_schema.py +++ b/tests/backends/mysql/test_schema.py @@ -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):