~cjwatson/storm/move-tests

« back to all changes in this revision

Viewing changes to tests/store/base.py

  • Committer: Colin Watson
  • Date: 2019-05-31 15:28:04 UTC
  • mfrom: (487.2.2 py3-exceptions)
  • Revision ID: cjwatson@canonical.com-20190531152804-jk4ykojm7k1fvjtf
Use Python 3-friendly "except" syntax. [r=simpoir]

Show diffs side-by-side

added added

removed removed

Lines of Context:
5929
5929
            self.store.commit()
5930
5930
            try:
5931
5931
                self.assertEquals(myfoo.title, title)
5932
 
            except AssertionError, e:
 
5932
            except AssertionError as e:
5933
5933
                raise AssertionError(unicode(e, 'replace') +
5934
5934
                    " (ensure your database was created with CREATE DATABASE"
5935
5935
                    " ... CHARACTER SET utf8)")