From 25b4637bcde9bdc86240ce5eef834374a1203925 Mon Sep 17 00:00:00 2001 From: Roman Podolyaka Date: Sun, 23 Jun 2013 12:04:21 +0300 Subject: Fix unicode literals on Python 3.1 and 3.2 A few tests use u'' unicode literals which are not supported in Python versions 3.1 and 3.2. --- lib/sqlalchemy/testing/suite/test_select.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy/testing') diff --git a/lib/sqlalchemy/testing/suite/test_select.py b/lib/sqlalchemy/testing/suite/test_select.py index b040c8f25..b8a755b8c 100644 --- a/lib/sqlalchemy/testing/suite/test_select.py +++ b/lib/sqlalchemy/testing/suite/test_select.py @@ -1,6 +1,7 @@ from .. import fixtures, config from ..assertions import eq_ +from sqlalchemy import util from sqlalchemy import Integer, String, select, func from ..schema import Table, Column @@ -63,7 +64,7 @@ class OrderByLabelTest(fixtures.TablesTest): ly = (func.lower(table.c.q) + table.c.p).label('ly') self._assert_result( select([lx, ly]).order_by(lx, ly.desc()), - [(3, u'q1p3'), (5, u'q2p2'), (7, u'q3p1')] + [(3, util.u('q1p3')), (5, util.u('q2p2')), (7, util.u('q3p1'))] ) def test_plain_desc(self): -- cgit v1.2.1