Permalink
Browse files

Skip test_Entrez_online.py under Jython

  • Loading branch information...
1 parent f0f4536 commit 7577b226c74f0265ba3e4b09d102798a913044f9 @peterjc peterjc committed Mar 22, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 Tests/test_Entrez_online.py
@@ -11,6 +11,7 @@
scope of this file as they are already covered in test_Entrez.py.
"""
+import os
import unittest
import requires_internet
@@ -21,6 +22,13 @@
from Bio import SeqIO
from Bio.SeqRecord import SeqRecord
+if os.name == 'java':
+ from Bio import MissingExternalDependencyError
+ #This is a slight miss-use of MissingExternalDependencyError,
+ #but it will do in the short term to skip this unit test on Jython
+ raise MissingExternalDependencyError("The Bio.Entrez XML parser fails "
+ "on Jython, see http://bugs.jython.org/issue1447")
+
#This lets us set the email address to be sent to NCBI Entrez:
Entrez.email = "biopython-dev@biopython.org"

0 comments on commit 7577b22

Please sign in to comment.