Skip to content

Commit

Permalink
Fix python-dependant import
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Oderbolz committed Jun 22, 2015
1 parent e04a570 commit 727e6bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/capabilities_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
from nose.plugins.skip import SkipTest
from . import osmapi_tests

if sys.version_info > (2, 6):
from hypothesis import given
from hypothesis.strategies import integers, floats
else:
if sys.version_info < (2, 7):
def given(func):
def inner(*args, **kwargs):
raise SkipTest
return inner
else:
from hypothesis import given
from hypothesis.strategies import integers, floats


class TestOsmApiNode(osmapi_tests.TestOsmApi):
Expand Down

0 comments on commit 727e6bd

Please sign in to comment.