1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #32595 -- Fixed SchemaEditor.quote_value() crash with bytes.

This commit is contained in:
Mariusz Felisiak
2021-03-29 10:10:19 +02:00
parent 3c75f1f3ca
commit f6018c1e63
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'),