Permalink
Browse files

Skip BGZF tests in test_SeqIO_index.py if issue 17666

  • Loading branch information...
1 parent a070270 commit fca34a91134d6cecd3e24dd6b032d973733a0158 @peterjc peterjc committed May 15, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 Tests/test_SeqIO_index.py
@@ -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."""
@@ -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:

0 comments on commit fca34a9

Please sign in to comment.