def skip_py3(testcase, reason="Not in Python 3"):
    if six.PY3:
        setup = lambda s: s.skipTest(reason)
        testcase.setUp = setup
    return testcase
Decorator for skip Python 3 tests.
dataset/ETHPy150Open django-dbbackup/django-dbbackup/dbbackup/tests/utils.py/skip_py3