Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Unified Diff: recipe_engine/third_party/setuptools/tests/py26compat.py

Issue 1344583003: Recipe package system. (Closed) Base URL: git@github.com:luci/recipes-py.git@master
Patch Set: Recompiled proto Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: recipe_engine/third_party/setuptools/tests/py26compat.py
diff --git a/recipe_engine/third_party/setuptools/tests/py26compat.py b/recipe_engine/third_party/setuptools/tests/py26compat.py
new file mode 100644
index 0000000000000000000000000000000000000000..d4fb891af676421a8eb4be1227c8b3f3d044c01f
--- /dev/null
+++ b/recipe_engine/third_party/setuptools/tests/py26compat.py
@@ -0,0 +1,14 @@
+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

Powered by Google App Engine
This is Rietveld 408576698