Opened 11 years ago
Closed 11 years ago
#21925 closed Bug (duplicate)
Error in GIS tests
Reported by: | Aymeric Augustin | Owned by: | nobody |
---|---|---|---|
Component: | GIS | Version: | dev |
Severity: | Release blocker | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The GIS tests fail for me:
% ./runtests.py django.contrib.gis ~/Documents/dev/django/tests Testing against Django installed in '/Users/myk/Documents/dev/django/django' Creating test database for alias 'default'... Creating test database for alias 'other'... ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss........................ssssssssssssssss...................E ====================================================================== ERROR: django.contrib.gis.tests.test_spatialrefsys (unittest.loader.ModuleImportFailure) ---------------------------------------------------------------------- ImportError: Failed to import test module: django.contrib.gis.tests.test_spatialrefsys Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py", line 252, in _find_tests module = self._get_module_from_name(name) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name __import__(name) File "/Users/myk/Documents/dev/django/django/contrib/gis/tests/test_spatialrefsys.py", line 6, in <module> from django.contrib.gis.utils import add_srs_entry ImportError: cannot import name add_srs_entry ---------------------------------------------------------------------- Ran 302 tests in 0.242s FAILED (errors=1, skipped=258) Destroying test database for alias 'default'... Destroying test database for alias 'other'...
OS X Mavericks. Some stuff installed with MacPorts.
Bisection points to fabc678f930431fd6e502fe7930ee772eff96898 which touched this area.
Note:
See TracTickets
for help on using tickets.
Reported again in #21930 and fixed in 9ab798a8d8911a431bcb28b0bd82e391e879077a.