From 4f9b50728ae8c5cf81b13b2d4fd3098b9f18dfb1 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Thu, 1 Jan 2015 16:48:11 -0500 Subject: Use pytest for skips --- setuptools/tests/py26compat.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'setuptools/tests/py26compat.py') diff --git a/setuptools/tests/py26compat.py b/setuptools/tests/py26compat.py index b1ffa877..c53b4809 100644 --- a/setuptools/tests/py26compat.py +++ b/setuptools/tests/py26compat.py @@ -1,21 +1,7 @@ import sys -import unittest import tarfile import contextlib -try: - # provide skipIf for Python 2.4-2.6 - skipIf = unittest.skipIf -except AttributeError: - def skipIf(condition, reason): - def skipper(func): - def skip(*args, **kwargs): - return - if condition: - return skip - return func - return skipper - def _tarfile_open_ex(*args, **kwargs): """ Extend result as a context manager. -- cgit v1.2.1