test/__init__.py
def onlyPY3(test):
    """Skips this test unless you are on Python3.x"""

    @functools.wraps(test)
    def wrapper(*args, **kwargs):
        msg = "{name} requires Python3.x to run".format(name=test.__name__)
        if not six.PY3:
            raise SkipTest(msg)
        return test(*args, **kwargs)
    return wrapper
Skips this test unless you are on Python3.x
Skips this test unless you are on Python3.x
Skips this test unless you are on Python3 . x
def onlyPY3(test):
    @functools.wraps(test)
    def wrapper(*args, **kwargs):
        msg = "{name} requires Python3.x to run".format(name=test.__name__)
        if not six.PY3:
            raise SkipTest(msg)
        return test(*args, **kwargs)
    return wrapper
def onlyPY3 ( test ) : @ functools . wraps ( test ) def wrapper ( * args , ** kwargs ) : msg = "{name} requires Python3.x to run" . format ( name = test . __name__ ) if not six . PY3 : raise SkipTest ( msg ) return test ( * args , ** kwargs ) return wrapper
Skips this test unless you are on Python3.x
Skips this test unless you are on Python3 . x
"""Skips this test unless you are on Python3.x"""
test