Skip to content

Instantly share code, notes, and snippets.

@mjtamlyn
Created March 26, 2014 13:52
Show Gist options
  • Save mjtamlyn/9783580 to your computer and use it in GitHub Desktop.
Save mjtamlyn/9783580 to your computer and use it in GitHub Desktop.
diff --git a/tests/runtests.py b/tests/runtests.py
index e852346..16f6e7b 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -58,6 +58,7 @@ ALWAYS_INSTALLED_APPS = [
def get_test_modules():
from django.contrib.gis.tests.utils import HAS_SPATIAL_DB
+ from django.db import connection
modules = []
discovery_paths = [
(None, RUNTESTS_DIR),
@@ -76,6 +77,8 @@ def get_test_modules():
os.path.isfile(f) or
not os.path.exists(os.path.join(dirpath, f, '__init__.py'))):
continue
+ if not connection.vendor == 'postgresql' and f == 'postgres_tests':
+ continue
modules.append((modpath, f))
return modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment