From e1d8d17ee02e03d8b99c4d7c653f2eedd0207d67 Mon Sep 17 00:00:00 2001 From: Matt Shirley Date: Wed, 11 Oct 2017 11:07:29 -0400 Subject: [PATCH] Mark test for #126 as expected failure for #127. --- tests/test_Fasta_bgzip.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_Fasta_bgzip.py b/tests/test_Fasta_bgzip.py index c8b1d25..78685a3 100644 --- a/tests/test_Fasta_bgzip.py +++ b/tests/test_Fasta_bgzip.py @@ -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 @@ -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" @@ -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')