Skip to content

Commit

Permalink
Merge pull request #1160 from cpcloud/no-mongo-skipping
Browse files Browse the repository at this point in the history
Skip on no mongo server running for interactive uri mongo test
  • Loading branch information
cpcloud committed Jul 7, 2015
2 parents 6b3c240 + 1c31d65 commit d3b336d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions blaze/compute/tests/test_mongo_compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,11 @@ def test_and_same_key(bank):


def test_interactive_dshape_works():
d = Data('mongodb://localhost:27017/test_db::bank',
dshape='var * {name: string, amount: int64}')
try:
d = Data('mongodb://localhost:27017/test_db::bank',
dshape='var * {name: string, amount: int64}')
except pymongo.errors.ConnectionFailure:
pytest.skip('No mongo server running')
assert d.dshape == dshape('var * {name: string, amount: int64}')


Expand Down

0 comments on commit d3b336d

Please sign in to comment.