From 1e7fcd8798399557494cbed4ff9a5beea0e287e5 Mon Sep 17 00:00:00 2001 From: Philip Jenvey Date: Sat, 13 Mar 2010 10:29:09 -0800 Subject: [PATCH] adjust per a couple zxjdbc failures --- test/dialect/test_oracle.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/test/dialect/test_oracle.py b/test/dialect/test_oracle.py index d007428a7c..7e93962056 100644 --- a/test/dialect/test_oracle.py +++ b/test/dialect/test_oracle.py @@ -423,6 +423,7 @@ class TypesTest(TestBase, AssertsCompiledSQL): b = bindparam("foo", u"hello world!") assert b.type.dialect_impl(dialect).get_dbapi_type(dbapi) == 'STRING' + @testing.fails_on('+zxjdbc', 'zxjdbc lacks the FIXED_CHAR dbapi type') def test_fixed_char(self): m = MetaData(testing.db) t = Table('t1', m, @@ -583,12 +584,12 @@ class TypesTest(TestBase, AssertsCompiledSQL): t2 = Table('t', m2, autoload=True) assert isinstance(t2.c.data.type, sqltypes.NVARCHAR) - # nvarchar returns unicode natively. cx_oracle - # _OracleNVarChar type should be at play - # here. - assert isinstance( - t2.c.data.type.dialect_impl(testing.db.dialect), - cx_oracle._OracleNVarChar) + if testing.against('oracle+cx_oracle'): + # nvarchar returns unicode natively. cx_oracle + # _OracleNVarChar type should be at play here. + assert isinstance( + t2.c.data.type.dialect_impl(testing.db.dialect), + cx_oracle._OracleNVarChar) data = u'm’a réveillé.' t2.insert().execute(data=data) -- 2.47.3