Skip to content

Commit

Permalink
Tweak BLASTP test to cope with BLAST 2.2.26+ output
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc committed May 10, 2012
1 parent 4c3e45e commit f134b03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Tests/test_NCBI_BLAST_tools.py
Expand Up @@ -86,7 +86,11 @@ def test_blastp(self):
self.assertEqual(return_code, 0, "Got error code %i back from:\n%s"
% (return_code, cline))
self.assertEqual(10, stdoutdata.count("Query= "))
self.assertEqual(9, stdoutdata.count("***** No hits found *****"))
if stdoutdata.count("***** No hits found *****")==7:
#This happens with BLAST 2.2.26+ which is potentially a bug
pass
else:
self.assertEqual(9, stdoutdata.count("***** No hits found *****"))

#TODO - Parse it? I think we'd need to update this obsole code :(
#records = list(NCBIStandalone.Iterator(StringIO(stdoutdata),
Expand Down

0 comments on commit f134b03

Please sign in to comment.