Created
March 26, 2014 13:52
-
-
Save mjtamlyn/9783580 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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