Skip to content

Commit 3421fff

Browse files
committed
reactivated unnecessarily skipped test
1 parent c25619f commit 3421fff

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/queryset/geo.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import sys
2+
from mongoengine.connection import get_connection
3+
24
sys.path[0:0] = [""]
35

46
import unittest
@@ -141,7 +143,13 @@ class Event(Document):
141143
def test_spherical_geospatial_operators(self):
142144
"""Ensure that spherical geospatial queries are working
143145
"""
144-
raise SkipTest("https://jira.mongodb.org/browse/SERVER-14039")
146+
# Needs MongoDB > 2.6.4 https://jira.mongodb.org/browse/SERVER-14039
147+
connection = get_connection()
148+
info = connection.test.command('buildInfo')
149+
mongodb_version = tuple([int(i) for i in info['version'].split('.')])
150+
if mongodb_version < (2, 6, 4):
151+
raise SkipTest("Need MongoDB version 2.6.4+")
152+
145153
class Point(Document):
146154
location = GeoPointField()
147155

0 commit comments

Comments
 (0)