Skip to content

Commit

Permalink
Mark test for #126 as expected failure for #127.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdshw5 committed Oct 11, 2017
1 parent 6fbf987 commit e1d8d17
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_Fasta_bgzip.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from pyfaidx import Fasta, Faidx, UnsupportedCompressionFormat, FetchError
from itertools import chain
from unittest import TestCase
from unittest import TestCase, expectedFailure
from nose.tools import raises
from nose.plugins.skip import SkipTest

Expand All @@ -20,7 +20,8 @@ def tearDown(self):
os.remove('data/genes.fasta.gz.fai')
except EnvironmentError:
pass # some tests may delete this file


@expectedFailure
def test_build_issue_126(self):
""" Samtools BGZF index should be identical to pyfaidx BGZF index """
expect_index = ("gi|563317589|dbj|AB821309.1| 3510 114 70 71\n"
Expand Down Expand Up @@ -242,7 +243,7 @@ def test_issue_79_fix_one_based_false_negate(self):
print(s.__dict__)
assert (105, 100) == (s.start, s.end)

@raises(UnsupportedCompressionFormat)
@raises(FetchError)
def test_fetch_border_padded(self):
""" Fetch past the end of a gene entry """
faidx = Faidx('data/genes.fasta.gz', default_seq='N')
Expand Down

0 comments on commit e1d8d17

Please sign in to comment.