~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to test_on_merge.py

  • Committer: Stuart Bishop
  • Date: 2006-03-10 04:16:07 UTC
  • mto: This revision was merged to the branch mainline in revision 3249.
  • Revision ID: stuart.bishop@canonical.com-20060310041607-b9984aa732ae1fcb
Make test_on_merge.py work with PostgreSQL 8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
        where datname='launchpad_ftest_template'
119
119
        """)
120
120
    enc = cur.fetchone()[0]
121
 
    if enc != 'UNICODE':
 
121
    if enc not in ('UNICODE', 'UTF8'):
122
122
        print 'Database encoding incorrectly set'
123
123
        return 1
124
124
    cur.execute(r"""