summaryrefslogtreecommitdiff
path: root/test/sql/test_unicode.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/sql/test_unicode.py')
-rw-r--r--test/sql/test_unicode.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/sql/test_unicode.py b/test/sql/test_unicode.py
index d75913267..6551594f3 100644
--- a/test/sql/test_unicode.py
+++ b/test/sql/test_unicode.py
@@ -56,6 +56,7 @@ class UnicodeSchemaTest(TestBase):
)
metadata.create_all()
+ @engines.close_first
def teardown(self):
if metadata.tables:
t3.delete().execute()
@@ -125,11 +126,11 @@ class EscapesDefaultsTest(testing.TestBase):
# reset the identifier preparer, so that we can force it to cache
# a unicode identifier
engine.dialect.identifier_preparer = engine.dialect.preparer(engine.dialect)
- select([column(u'special_col')]).select_from(t1).execute()
+ select([column(u'special_col')]).select_from(t1).execute().close()
assert isinstance(engine.dialect.identifier_preparer.format_sequence(Sequence('special_col')), unicode)
# now execute, run the sequence. it should run in u"Special_col.nextid" or similar as
- # a unicode object; cx_oracle asserts that this is None or a String (postgres lets it pass thru).
+ # a unicode object; cx_oracle asserts that this is None or a String (postgresql lets it pass thru).
# ensure that base.DefaultRunner is encoding.
t1.insert().execute(data='foo')
finally: