~cjwatson/storm/py312

« back to all changes in this revision

Viewing changes to storm/tests/databases/mysql.py

  • Committer: Colin Watson
  • Date: 2021-05-25 09:19:59 UTC
  • mfrom: (571.2.1 mysql-8.0.24-compat)
  • Revision ID: cjwatson@canonical.com-20210525091959-qlkdos40c77ozsdy
[r=ilasc] Fix test compatibility with MySQL >= 8.0.24.

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
                           ("unix_socket", "us")]:
79
79
            self.assertEqual(database._connect_kwargs.get(key), value)
80
80
 
81
 
    def test_charset_defaults_to_utf8(self):
 
81
    def test_charset_defaults_to_utf8mb3(self):
82
82
        result = self.connection.execute("SELECT @@character_set_client")
83
 
        self.assertEqual(result.get_one(), ("utf8",))
 
83
        self.assertEqual(result.get_one(), ("utf8mb3",))
84
84
 
85
85
    def test_charset_option(self):
86
86
        uri = URI(os.environ["STORM_MYSQL_URI"])