diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2012-07-22 15:35:47 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2012-07-22 15:35:47 -0400 |
| commit | 2cbbedf7be98fd3f43ab8897f68e36c18e2bef9a (patch) | |
| tree | 1eb9b10253c7dcf5a10328977bdaabd960ba2cb3 /setuptools/tests/py26compat.py | |
| parent | 4f7bf7c846ae9761bd10a44f60c656b9741d69be (diff) | |
| download | python-setuptools-git-2cbbedf7be98fd3f43ab8897f68e36c18e2bef9a.tar.gz | |
Added python 2.4-2.6 support for skipIf
--HG--
branch : distribute
extra : rebase_source : cac18ef7c3dbde38ceac3a0c71cfb3b5ffa56dd5
Diffstat (limited to 'setuptools/tests/py26compat.py')
| -rw-r--r-- | setuptools/tests/py26compat.py | 13 |
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 |
