1
0
mirror of https://github.com/django/django.git synced 2025-10-27 07:36:08 +00:00

[3.2.x] Fixed #32595 -- Fixed SchemaEditor.quote_value() crash with bytes.

Backport of f6018c1e63 from main
This commit is contained in:
Mariusz Felisiak
2021-03-29 10:10:19 +02:00
parent 682eba534f
commit d67d48e923
2 changed files with 9 additions and 1 deletions

View File

@@ -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'),