summaryrefslogtreecommitdiff
path: root/setuptools/tests/py26compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/tests/py26compat.py')
-rw-r--r--setuptools/tests/py26compat.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/setuptools/tests/py26compat.py b/setuptools/tests/py26compat.py
new file mode 100644
index 00000000..ddf2ceb0
--- /dev/null
+++ b/setuptools/tests/py26compat.py
@@ -0,0 +1,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