Skip to content

Commit

Permalink
Skip BGZF tests in test_SeqIO_index.py if issue 17666
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc committed May 15, 2013
1 parent a070270 commit fca34a9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Tests/test_SeqIO_index.py
Expand Up @@ -33,6 +33,12 @@

from seq_tests_common import compare_record

from Bio import MissingPythonDependencyError
try:
from test_bgzf import _have_bug17666
do_bgzf = _have_bug17666()
except MissingPythonDependencyError:
do_bgzf = False

def add_prefix(key):
"""Dummy key_function for testing index code."""
Expand Down Expand Up @@ -415,7 +421,7 @@ def test_duplicates_to_dict(self):
for filename, format, alphabet in tests:
assert format in _FormatToRandomAccess
tasks = [(filename, None)]
if os.path.isfile(filename + ".bgz"):
if do_bgzf and os.path.isfile(filename + ".bgz"):
tasks.append((filename + ".bgz","bgzf"))
for filename, comp in tasks:

Expand Down

0 comments on commit fca34a9

Please sign in to comment.