diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-02-17 01:18:54 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-02-17 01:18:54 +0000 |
| commit | 5f83c55fc7710ad495e64268627949ca91a66c72 (patch) | |
| tree | 4f4f4f3b10f856051e481324ca6415dfd7e7f4cf /test/sql | |
| parent | 67f020f69cbca55150c2d793ba3f9fcb95749838 (diff) | |
| download | sqlalchemy-5f83c55fc7710ad495e64268627949ca91a66c72.tar.gz | |
- 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
Diffstat (limited to 'test/sql')
| -rw-r--r-- | test/sql/testtypes.py | 11 |
1 files changed, 2 insertions, 9 deletions
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'])) |
