mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
715ab8b96a
So seamless.
15 lines
267 B
Python
15 lines
267 B
Python
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
|