summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-09-24 12:22:50 +0200
committerClaude Paroz <claude@2xlibre.net>2013-09-24 12:23:42 +0200
commit18fb713e7bef6ff69a62821b25790bb7dc48812a (patch)
treea66bb9214f5bcec61c63ee5d7e89157996262a3e
parent45403d330a612dd24793060a796c00b41e75d13d (diff)
Properly marked skipped GIS tests as skipped
-rw-r--r--django/contrib/gis/tests/utils.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/django/contrib/gis/tests/utils.py b/django/contrib/gis/tests/utils.py
index a09a3ab531..62d83cf9e3 100644
--- a/django/contrib/gis/tests/utils.py
+++ b/django/contrib/gis/tests/utils.py
@@ -1,13 +1,16 @@
+from unittest import skip
+
from django.conf import settings
from django.db import DEFAULT_DB_ALIAS
-# function that will pass a test.
-def pass_test(*args): return
def no_backend(test_func, backend):
"Use this decorator to disable test on specified backend."
if settings.DATABASES[DEFAULT_DB_ALIAS]['ENGINE'].rsplit('.')[-1] == backend:
- return pass_test
+ @skip("This test is skipped on '%s' backend" % backend)
+ def inner():
+ pass
+ return inner
else:
return test_func