def expected_failure_on_py3(f):
    """
    Decorator for specifying that a test will probably fail on py3.
    :param f: test function
    :type f: callable
    :return: decorated function
    :rtype: callable
    """
    if PY3:
        return unittest.expectedFailure(f)
    else:
        return f

    Decorator for specifying that a test will probably fail on py3.
    :param f: test function
    :type f: callable
    :return: decorated function
    :rtype: callable
    
tests/stashtest.py