diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-26 17:20:10 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-26 17:20:10 +0000 |
| commit | 11f996da20cf40692a21f6e836655cc36d1857d7 (patch) | |
| tree | a22f851b80583543f8b38ef00214b2b43029d677 /test/dialect/test_postgresql.py | |
| parent | 363fa9ab729fc94a5a1724111049e45635756bef (diff) | |
| download | sqlalchemy-11f996da20cf40692a21f6e836655cc36d1857d7.tar.gz | |
fix unicode warnings
Diffstat (limited to 'test/dialect/test_postgresql.py')
| -rw-r--r-- | test/dialect/test_postgresql.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/dialect/test_postgresql.py b/test/dialect/test_postgresql.py index 9982821c0..1a21ec11f 100644 --- a/test/dialect/test_postgresql.py +++ b/test/dialect/test_postgresql.py @@ -1350,7 +1350,7 @@ class ArrayTest(TestBase, AssertsExecutionResults): @testing.fails_on('postgresql+zxjdbc', 'zxjdbc has no support for PG arrays') def test_insert_array(self): - arrtable.insert().execute(intarr=[1,2,3], strarr=['abc', 'def']) + arrtable.insert().execute(intarr=[1,2,3], strarr=[u'abc', u'def']) results = arrtable.select().execute().fetchall() eq_(len(results), 1) eq_(results[0]['intarr'], [1,2,3]) @@ -1359,8 +1359,8 @@ class ArrayTest(TestBase, AssertsExecutionResults): @testing.fails_on('postgresql+pg8000', 'pg8000 has poor support for PG arrays') @testing.fails_on('postgresql+zxjdbc', 'zxjdbc has no support for PG arrays') def test_array_where(self): - arrtable.insert().execute(intarr=[1,2,3], strarr=['abc', 'def']) - arrtable.insert().execute(intarr=[4,5,6], strarr='ABC') + arrtable.insert().execute(intarr=[1,2,3], strarr=[u'abc', u'def']) + arrtable.insert().execute(intarr=[4,5,6], strarr=u'ABC') results = arrtable.select().where(arrtable.c.intarr == [1,2,3]).execute().fetchall() eq_(len(results), 1) eq_(results[0]['intarr'], [1,2,3]) @@ -1369,7 +1369,7 @@ class ArrayTest(TestBase, AssertsExecutionResults): @testing.fails_on('postgresql+pypostgresql', 'pypostgresql fails in coercing an array') @testing.fails_on('postgresql+zxjdbc', 'zxjdbc has no support for PG arrays') def test_array_concat(self): - arrtable.insert().execute(intarr=[1,2,3], strarr=['abc', 'def']) + arrtable.insert().execute(intarr=[1,2,3], strarr=[u'abc', u'def']) results = select([arrtable.c.intarr + [4,5,6]]).execute().fetchall() eq_(len(results), 1) eq_(results[0][0], [1,2,3,4,5,6]) |
