File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -182,19 +182,19 @@ def test_binary_prefix(self):
182182 for binary_prefix in (True , False , None ):
183183 kwargs = self .connect_kwargs .copy ()
184184 # needs to be set to can guarantee CHARSET response for normal strings
185- kwargs ["charset" ] = "utf8 "
185+ kwargs ["charset" ] = "utf8mb4 "
186186 if binary_prefix is not None :
187187 kwargs ["binary_prefix" ] = binary_prefix
188188
189189 with closing (connection_factory (** kwargs )) as conn :
190190 with closing (conn .cursor ()) as c :
191191 c .execute ("SELECT CHARSET(%s)" , (MySQLdb .Binary (b"raw bytes" ),))
192192 self .assertEqual (
193- c .fetchall ()[0 ][0 ], "binary" if binary_prefix else "utf8 "
193+ c .fetchall ()[0 ][0 ], "binary" if binary_prefix else "utf8mb4 "
194194 )
195195 # normal strings should not get prefix
196196 c .execute ("SELECT CHARSET(%s)" , ("str" ,))
197- self .assertEqual (c .fetchall ()[0 ][0 ], "utf8 " )
197+ self .assertEqual (c .fetchall ()[0 ][0 ], "utf8mb4 " )
198198
199199
200200if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments