openmedialibrary_platform/Darwin/lib/python3.4/site-packages/setuptools/tests/py26compat.py

15 lines
267 B
Python
Raw Normal View History

2013-10-11 17:28:32 +00:00
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
return skipper