From f6018c1e63a04e0c12e2ca759e76e05ccf5e09de Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Mon, 29 Mar 2021 10:10:19 +0200 Subject: Fixed #32595 -- Fixed SchemaEditor.quote_value() crash with bytes. --- tests/backends/mysql/test_schema.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/backends/mysql/test_schema.py b/tests/backends/mysql/test_schema.py index e4b25538dd..44f4a07b18 100644 --- a/tests/backends/mysql/test_schema.py +++ b/tests/backends/mysql/test_schema.py @@ -12,6 +12,7 @@ class SchemaEditorTests(TestCase): tested_values = [ ('string', "'string'"), ('¿Tú hablas inglés?', "'¿Tú hablas inglés?'"), + (b'bytes', b"'bytes'"), (42, '42'), (1.754, '1.754e0' if MySQLdb.version_info >= (1, 3, 14) else '1.754'), (False, b'0' if MySQLdb.version_info >= (1, 4, 0) else '0'), -- cgit v1.3