5 | | test_suite_names = ['test_gdal_driver', |
6 | | 'test_gdal_ds', |
7 | | 'test_gdal_geom', |
8 | | 'test_gdal_srs', |
9 | | 'test_geos', |
10 | | 'test_measure', |
11 | | 'test_spatialrefsys', |
12 | | ] |
| 6 | test_suite_names = [ |
| 7 | 'test_geos', |
| 8 | 'test_measure', |
| 9 | ] |
| 10 | try: |
| 11 | # GDAL tests |
| 12 | import django.contrib.gis.gdal |
| 13 | test_suite_names += [ |
| 14 | 'test_gdal_driver', |
| 15 | 'test_gdal_ds', |
| 16 | 'test_gdal_geom', |
| 17 | 'test_gdal_srs', |
| 18 | 'test_spatialrefsys', |
| 19 | ] |
| 20 | except ImportError, e: |
| 21 | print >>sys.stderr, "GDAL not available - no GDAL tests will be run." |