aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarko Tibold2012-01-04 12:23:12 +0100
committerMarko Tibold2012-01-04 12:23:12 +0100
commit1f6e3429e42155df09ad684a029efe1242ead445 (patch)
tree44a9d2c06cd67184355e59ee274d2d92f1c7d8e3
parent47e4f0d37deb0f420e403cee6b4b4790e875d250 (diff)
downloaddjango-rest-framework-1f6e3429e42155df09ad684a029efe1242ead445.tar.bz2
Fix indentation
-rw-r--r--djangorestframework/compat.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/djangorestframework/compat.py b/djangorestframework/compat.py
index 58ecb453..1d86338d 100644
--- a/djangorestframework/compat.py
+++ b/djangorestframework/compat.py
@@ -443,21 +443,21 @@ except ImportError: # python < 2.7
# Pasted from py27/lib/unittest/case.py
pass
- def skip(reason):
+ def skip(reason):
# Pasted from py27/lib/unittest/case.py
- """
- Unconditionally skip a test.
- """
- def decorator(test_item):
- if not (isinstance(test_item, type) and issubclass(test_item, TestCase)):
- @functools.wraps(test_item)
- def skip_wrapper(*args, **kwargs):
- raise SkipTest(reason)
- test_item = skip_wrapper
-
- test_item.__unittest_skip__ = True
- test_item.__unittest_skip_why__ = reason
- return test_item
- return decorator
+ """
+ Unconditionally skip a test.
+ """
+ def decorator(test_item):
+ if not (isinstance(test_item, type) and issubclass(test_item, TestCase)):
+ @functools.wraps(test_item)
+ def skip_wrapper(*args, **kwargs):
+ raise SkipTest(reason)
+ test_item = skip_wrapper
+
+ test_item.__unittest_skip__ = True
+ test_item.__unittest_skip_why__ = reason
+ return test_item
+ return decorator
unittest.skip = skip