mirror of
https://github.com/django/django.git
synced 2025-10-26 23:26:08 +00:00
Refs #25655 -- Made HAS_GEOS depend on a minimum version.
This skips some tests on systems with GEOS < 3.3 (the minimum supported version).
This commit is contained in:
@@ -15,7 +15,6 @@ from .point import Point # NOQA
|
|||||||
from .polygon import Polygon # NOQA
|
from .polygon import Polygon # NOQA
|
||||||
|
|
||||||
try:
|
try:
|
||||||
geos_version_info()
|
HAS_GEOS = geos_version_info()['version'] >= '3.3.0'
|
||||||
HAS_GEOS = True
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
HAS_GEOS = False
|
HAS_GEOS = False
|
||||||
|
|||||||
Reference in New Issue
Block a user