Skip to content

Commit

Permalink
Remove unused testing utility function onlyPy34OrOlder (#1403)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdufresne authored and SethMichaelLarson committed Jun 28, 2018
1 parent 0f85e05 commit 2191daa
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions test/__init__.py
Expand Up @@ -49,18 +49,6 @@ def wrapper(*args, **kwargs):
return wrapper


def onlyPy34OrOlder(test):
"""Skips this test unless you are on Python2.6.x or earlier."""

@functools.wraps(test)
def wrapper(*args, **kwargs):
msg = "{name} only runs on Python2.6.x or older".format(name=test.__name__)
if sys.version_info >= (3, 4):
pytest.skip(msg)
return test(*args, **kwargs)
return wrapper


def onlyPy27OrNewer(test):
"""Skips this test unless you are on Python 2.7.x or later."""

Expand Down

0 comments on commit 2191daa

Please sign in to comment.