diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-05-26 16:39:50 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-05-26 16:39:50 -0400 |
commit | b3654ee37abe7af3d83098cd8de1980369a3fcba (patch) | |
tree | c8b1543d9d4b872481988d0a3fa405509a2e6c0d /test/dialect/test_postgresql.py | |
parent | f939abe83034840b6c304df5ea4dfda5e9dc4633 (diff) | |
download | sqlalchemy-b3654ee37abe7af3d83098cd8de1980369a3fcba.tar.gz |
postgresql tests
Diffstat (limited to 'test/dialect/test_postgresql.py')
-rw-r--r-- | test/dialect/test_postgresql.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/dialect/test_postgresql.py b/test/dialect/test_postgresql.py index 8568f6add..286628d5e 100644 --- a/test/dialect/test_postgresql.py +++ b/test/dialect/test_postgresql.py @@ -1478,7 +1478,7 @@ class ReflectionTest(fixtures.TestBase): meta1.create_all() meta2 = MetaData(testing.db) subject = Table('subject', meta2, autoload=True) - eq_(list(subject.primary_key.columns.keys()), ['p2', 'p1']) + eq_(subject.primary_key.columns.keys(), ['p2', 'p1']) @testing.provide_metadata def test_pg_weirdchar_reflection(self): @@ -2205,15 +2205,15 @@ class ArrayTest(fixtures.TablesTest, AssertsExecutionResults): def test_array_subtype_resultprocessor(self): arrtable = self.tables.arrtable arrtable.insert().execute(intarr=[4, 5, 6], - strarr=[[util.u('m\xe4\xe4')], [ - util.u('m\xf6\xf6')]]) + strarr=[[util.ue('m\xe4\xe4')], [ + util.ue('m\xf6\xf6')]]) arrtable.insert().execute(intarr=[1, 2, 3], strarr=[ - util.u('m\xe4\xe4'), util.u('m\xf6\xf6')]) + util.ue('m\xe4\xe4'), util.ue('m\xf6\xf6')]) results = \ arrtable.select(order_by=[arrtable.c.intarr]).execute().fetchall() eq_(len(results), 2) - eq_(results[0]['strarr'], [util.u('m\xe4\xe4'), util.u('m\xf6\xf6')]) - eq_(results[1]['strarr'], [[util.u('m\xe4\xe4')], [util.u('m\xf6\xf6')]]) + eq_(results[0]['strarr'], [util.ue('m\xe4\xe4'), util.ue('m\xf6\xf6')]) + eq_(results[1]['strarr'], [[util.ue('m\xe4\xe4')], [util.ue('m\xf6\xf6')]]) def test_array_literal(self): eq_( |