Skip to content

Commit fbc9f75

Browse files
committed
BUG#33729842: Character set 'utf8mb3' is show as 'utf8' on 5.7 c-ext
1 parent 9cebcd2 commit fbc9f75

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/cext/test_cext_api.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,11 @@ def test_set_character_set(self):
627627

628628
exp = {'character_set_connection': 'utf8mb3'}
629629
cmy1.set_character_set('utf8mb3')
630-
self.assertEqual(exp, get_variables(cmy1, variables=variables))
630+
if (tests.MYSQL_VERSION >= (8, 0, 0)):
631+
self.assertEqual(exp, get_variables(cmy1, variables=variables))
632+
else:
633+
exp = {'character_set_connection': 'utf8'}
634+
self.assertEqual(exp, get_variables(cmy1, variables=variables))
631635

632636
@unittest.skipIf(tests.MYSQL_VERSION == (5, 7, 4),
633637
"test_get_ssl_cipher not tested with MySQL version 5.7.4")

0 commit comments

Comments
 (0)