summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2021-03-29 10:10:19 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-03-30 11:47:49 +0200
commitd67d48e923eafd8ab7f8cc21985584f9606d9808 (patch)
treea48834848881b557c231dc0c295734ec42f0f23b /tests
parent682eba534f15e962d29026bfcac8dcaf4555aac0 (diff)
[3.2.x] Fixed #32595 -- Fixed SchemaEditor.quote_value() crash with bytes.
Backport of f6018c1e63a04e0c12e2ca759e76e05ccf5e09de from main
Diffstat (limited to 'tests')
-rw-r--r--tests/backends/mysql/test_schema.py1
1 files changed, 1 insertions, 0 deletions
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'),