Skip to content

Commit

Permalink
skip relevant tests if screed isn't available, instead of failing all
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Jul 13, 2010
1 parent 513748e commit ef3d9eb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Pyrex/tests.py
Expand Up @@ -2,15 +2,16 @@
# @CTB refactor test_bridge_nlmsa_equiv to use the new pygr ival construction
# lib code.
import os.path
from nose import SkipTest

try:
import screed
from screed.pygr_api import ScreedSequenceDB
except ImportError:
raise Exception, "you need to install screed!"
pass

import caper
from caper_pygr_bridge import CaperBridge
from screed.pygr_api import ScreedSequenceDB
from pygr import cnestedlist, seqdb

sequence_path = 'data/REL606.gmc.fa'
Expand Down Expand Up @@ -557,6 +558,11 @@ def test_iterated_restricted_slice_and_iterated_intersect_equivalency(self):

class PygrBridge_Test(object):
def setup(self):
try:
screed
except NameError:
raise SkipTest

self.cont = caper.mapping_container(map_bundle)
self.db = seqdb.SequenceFileDB(sequence_path) #ScreedSequenceDB('data/REL606.gmc.fa')
self.db = ScreedSequenceDB(sequence_path)
Expand Down

0 comments on commit ef3d9eb

Please sign in to comment.