Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Properly marked skipped GIS tests as skipped

  • Loading branch information...
commit 18fb713e7bef6ff69a62821b25790bb7dc48812a 1 parent 45403d3
Claude Paroz authored September 24, 2013

Showing 1 changed file with 6 additions and 3 deletions. Show diff stats Hide diff stats

  1. 9  django/contrib/gis/tests/utils.py
9  django/contrib/gis/tests/utils.py
... ...
@@ -1,13 +1,16 @@
  1
+from unittest import skip
  2
+
1 3
 from django.conf import settings
2 4
 from django.db import DEFAULT_DB_ALIAS
3 5
 
4  
-# function that will pass a test.
5  
-def pass_test(*args): return
6 6
 
7 7
 def no_backend(test_func, backend):
8 8
     "Use this decorator to disable test on specified backend."
9 9
     if settings.DATABASES[DEFAULT_DB_ALIAS]['ENGINE'].rsplit('.')[-1] == backend:
10  
-        return pass_test
  10
+        @skip("This test is skipped on '%s' backend" % backend)
  11
+        def inner():
  12
+            pass
  13
+        return inner
11 14
     else:
12 15
         return test_func
13 16
 

0 notes on commit 18fb713

Please sign in to comment.
Something went wrong with that request. Please try again.