From 2191daaf25b85d4343b67b246c1a8e7ad09932fa Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Thu, 28 Jun 2018 12:24:01 -0700 Subject: [PATCH] Remove unused testing utility function onlyPy34OrOlder (#1403) --- test/__init__.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/test/__init__.py b/test/__init__.py index 1f18d75c9b..39eddd79c6 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -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."""