aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/py26compat.py
blob: ddf2ceb0b62adebe2d1e7f67048ce6d70a356739 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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