Commit 2cbbedf7 authored by Jason R. Coombs's avatar Jason R. Coombs

Added python 2.4-2.6 support for skipIf

--HG--
branch : distribute
extra : rebase_source : cac18ef7c3dbde38ceac3a0c71cfb3b5ffa56dd5
parent 4f7bf7c8
import unittest
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
......@@ -13,6 +13,8 @@ except:
import pkg_resources
from setuptools.tests.py26compat import skipIf
def DALS(s):
"dedent and left-strip"
return textwrap.dedent(s).lstrip()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment