Skip some tests for py3 since boto is not compatible yet.
This commit is contained in:
parent
4c40f39a68
commit
1ca651e106
2 changed files with 16 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
from __future__ import unicode_literals
|
||||
import boto
|
||||
from nose.plugins.skip import SkipTest
|
||||
import six
|
||||
|
||||
|
||||
def version_tuple(v):
|
||||
|
|
@ -23,3 +24,10 @@ class requires_boto_gte(object):
|
|||
if boto_version >= required:
|
||||
return test
|
||||
return skip_test
|
||||
|
||||
|
||||
class disable_on_py3(object):
|
||||
def __call__(self, test):
|
||||
if not six.PY3:
|
||||
return test
|
||||
return skip_test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue