Opened 11 years ago

Closed 11 years ago

#21930 closed Bug (fixed)

Regression with test django.contrib.gis.tests.test_spatialrefsys

Reported by: Michael Manfre Owned by: Claude Paroz
Component: GIS Version: dev
Severity: Release blocker Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

With sqlite on windows and python 2.7.5

======================================================================
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 "C:\Python27\Lib\unittest\loader.py", line 252, in _find_tests
    module = self._get_module_from_name(name)
  File "C:\Python27\Lib\unittest\loader.py", line 230, in _get_module_from_name
    __import__(name)
  File "D:\project\django\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

Bisect

fabc678f930431fd6e502fe7930ee772eff96898 is the first bad commit
commit fabc678f930431fd6e502fe7930ee772eff96898
Author: Claude Paroz <claude@2xlibre.net>
Date:   Thu Jan 30 09:37:15 2014 +0100

    Added new srs test and various cleaning

:040000 040000 59be96e70c8b3d819388f9ca6f4ead7e1de09ace 1213b8a9e92aba2134e64248c3038503f98e1d35 M  django

Change History (2)

comment:1 by Claude Paroz, 11 years ago

Owner: changed from nobody to Claude Paroz
Status: newassigned
Triage Stage: UnreviewedAccepted

comment:2 by Claude Paroz <claude@…>, 11 years ago

Resolution: fixed
Status: assignedclosed

In 9ab798a8d8911a431bcb28b0bd82e391e879077a:

Fixed #21930 -- Only import add_srs_entry if GDAL is installed

Fixed regression introduced by fabc678f93. Thanks Michael Manfre
for the report.

Note: See TracTickets for help on using tickets.
Back to Top