Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Properly marked skipped GIS tests as skipped

  • Loading branch information...
commit 18fb713e7bef6ff69a62821b25790bb7dc48812a 1 parent 45403d3
@claudep claudep authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 django/contrib/gis/tests/
9 django/contrib/gis/tests/
@@ -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
return test_func
Please sign in to comment.
Something went wrong with that request. Please try again.