From 5f83c55fc7710ad495e64268627949ca91a66c72 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 17 Feb 2007 01:18:54 +0000 Subject: - fixed oracle list of binary types to check for their presence in the module (such as BFILE not in all versions of cx_Oracle) - removed oracle-handicap from binary unit test to test [ticket:435] fix, added an extra row containing None --- test/sql/testtypes.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'test/sql') diff --git a/test/sql/testtypes.py b/test/sql/testtypes.py index 8606f1b74..e924d08ca 100644 --- a/test/sql/testtypes.py +++ b/test/sql/testtypes.py @@ -211,15 +211,8 @@ class BinaryTest(AssertMixin): stream2 =self.load_stream('binary_data_two.dat') binary_table.insert().execute(primary_id=1, misc='binary_data_one.dat', data=stream1, data_slice=stream1[0:100], pickled=testobj1) binary_table.insert().execute(primary_id=2, misc='binary_data_two.dat', data=stream2, data_slice=stream2[0:99], pickled=testobj2) - if db.name == 'oracle': - res = binary_table.select().execute() - l = [] - row = res.fetchone() - l.append(dict([(k, row[k]) for k in row.keys()])) - row = res.fetchone() - l.append(dict([(k, row[k]) for k in row.keys()])) - else: - l = binary_table.select().execute().fetchall() + binary_table.insert().execute(primary_id=3, misc='binary_data_two.dat', data=None, data_slice=stream2[0:99], pickled=None) + l = binary_table.select().execute().fetchall() print len(stream1), len(l[0]['data']), len(l[0]['data_slice']) self.assert_(list(stream1) == list(l[0]['data'])) self.assert_(list(stream1[0:100]) == list(l[0]['data_slice'])) -- cgit v1.2.1