summaryrefslogtreecommitdiff
path: root/test/dialect/test_postgresql.py
diff options
context:
space:
mode:
authorRoman Podolyaka <roman.podolyaka@gmail.com>2013-06-23 12:04:21 +0300
committerRoman Podolyaka <roman.podolyaka@gmail.com>2013-06-23 12:57:53 +0300
commit25b4637bcde9bdc86240ce5eef834374a1203925 (patch)
tree5c39776e851a749809f6ad5c62d386836bde3dbe /test/dialect/test_postgresql.py
parenteba9d1b58f38577fb71d3374a2133d6e9159c277 (diff)
downloadsqlalchemy-pr/10.tar.gz
Fix unicode literals on Python 3.1 and 3.2pr/10
A few tests use u'' unicode literals which are not supported in Python versions 3.1 and 3.2.
Diffstat (limited to 'test/dialect/test_postgresql.py')
-rw-r--r--test/dialect/test_postgresql.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/dialect/test_postgresql.py b/test/dialect/test_postgresql.py
index 5b610bb40..46a7b316b 100644
--- a/test/dialect/test_postgresql.py
+++ b/test/dialect/test_postgresql.py
@@ -3265,17 +3265,17 @@ class HStoreRoundTripTest(fixtures.TablesTest):
def _test_unicode_round_trip(self, engine):
s = select([
- hstore(
- array([u'réveillé', u'drôle', u'S’il']),
- array([u'réveillé', u'drôle', u'S’il'])
- )
- ])
+ hstore(
+ array([util.u('réveillé'), util.u('drôle'), util.u('S’il')]),
+ array([util.u('réveillé'), util.u('drôle'), util.u('S’il')])
+ )
+ ])
eq_(
engine.scalar(s),
{
- u'réveillé': u'réveillé',
- u'drôle': u'drôle',
- u'S’il': u'S’il'
+ util.u('réveillé'): util.u('réveillé'),
+ util.u('drôle'): util.u('drôle'),
+ util.u('S’il'): util.u('S’il')
}
)