From f444de4d78194f418b4f015b0e761631ebafd979 Mon Sep 17 00:00:00 2001
From: Inada Naoki <songofacandy@gmail.com>
Date: Fri, 3 Sep 2021 11:20:52 +0900
Subject: [PATCH] Use utf8mb4 in test_binary_prefix

---
 tests/test_MySQLdb_capabilities.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/test_MySQLdb_capabilities.py b/tests/test_MySQLdb_capabilities.py
index 0b4dd21a..fc213b84 100644
--- a/tests/test_MySQLdb_capabilities.py
+++ b/tests/test_MySQLdb_capabilities.py
@@ -182,7 +182,7 @@ def test_binary_prefix(self):
         for binary_prefix in (True, False, None):
             kwargs = self.connect_kwargs.copy()
             # needs to be set to can guarantee CHARSET response for normal strings
-            kwargs["charset"] = "utf8"
+            kwargs["charset"] = "utf8mb4"
             if binary_prefix is not None:
                 kwargs["binary_prefix"] = binary_prefix
 
@@ -190,11 +190,11 @@ def test_binary_prefix(self):
                 with closing(conn.cursor()) as c:
                     c.execute("SELECT CHARSET(%s)", (MySQLdb.Binary(b"raw bytes"),))
                     self.assertEqual(
-                        c.fetchall()[0][0], "binary" if binary_prefix else "utf8"
+                        c.fetchall()[0][0], "binary" if binary_prefix else "utf8mb4"
                     )
                     # normal strings should not get prefix
                     c.execute("SELECT CHARSET(%s)", ("str",))
-                    self.assertEqual(c.fetchall()[0][0], "utf8")
+                    self.assertEqual(c.fetchall()[0][0], "utf8mb4")
 
 
 if __name__ == "__main__":