Permalink
Browse files

Tweak BLASTP test to cope with BLAST 2.2.26+ output

  • Loading branch information...
1 parent 4c3e45e commit f134b035512674a9cf1db5daef28066cb7f3d780 @peterjc peterjc committed May 10, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 Tests/test_NCBI_BLAST_tools.py
@@ -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),

0 comments on commit f134b03

Please sign in to comment.