Skip to content

Commit

Permalink
Unequal raw text retrieval in Bio.SearchIO index tests now results in…
Browse files Browse the repository at this point in the history
… a failure.
  • Loading branch information
bow authored and peterjc committed Dec 5, 2012
1 parent 48c4ec6 commit 3fd337d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Tests/test_SearchIO_index.py
Expand Up @@ -40,13 +40,7 @@ def check_raw(self, filename, id, raw, **kwargs):
#Now again, but using SQLite backend
if sqlite3:
idx = SearchIO.index_db(":memory:", filename, self.fmt, **kwargs)
#TODO - Fix mismatch between record length and get_raw behaviour
raw2 = idx.get_raw(id)
if raw != raw2:
print "[WARNING - %s get_raw %i vs %i bytes] " \
% (self.fmt, len(raw), len(raw2))
self.assertTrue(raw2 in raw or raw in raw2)
#self.assertEqual(raw, idx.get_raw(id))
self.assertEqual(raw, idx.get_raw(id))
idx.close()

if os.path.isfile(filename + ".bgz"):
Expand Down

0 comments on commit 3fd337d

Please sign in to comment.