Changeset 544 for branches/4.x


Ignore:
Timestamp:
Nov 18, 2015, 1:50:55 PM (4 years ago)
Author:
cito
Message:

Don't assume utf8 encoding of the test database

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.x/module/TEST_PyGreSQL_classic_connection.py

    r543 r544  
    548548    def testQueryWithUnicodeParams(self):
    549549        query = self.c.query
     550        query('set client_encoding = utf8')
    550551        self.assertEqual(query("select $1||', '||$2||'!'",
    551552            ('Hello', u'w\xf6rld')).getresult(), [('Hello, w\xc3\xb6rld!',)])
Note: See TracChangeset for help on using the changeset viewer.