From 3421fffa9be637c8fa6eb5d023da5d3d2fb19e9e Mon Sep 17 00:00:00 2001 From: mrigal Date: Thu, 16 Apr 2015 11:18:29 +0200 Subject: [PATCH] reactivated unnecessarily skipped test --- tests/queryset/geo.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/queryset/geo.py b/tests/queryset/geo.py index 5148a48e..dad51132 100644 --- a/tests/queryset/geo.py +++ b/tests/queryset/geo.py @@ -1,4 +1,6 @@ import sys +from mongoengine.connection import get_connection + sys.path[0:0] = [""] import unittest @@ -141,7 +143,13 @@ class GeoQueriesTest(unittest.TestCase): def test_spherical_geospatial_operators(self): """Ensure that spherical geospatial queries are working """ - raise SkipTest("https://jira.mongodb.org/browse/SERVER-14039") + # Needs MongoDB > 2.6.4 https://jira.mongodb.org/browse/SERVER-14039 + connection = get_connection() + info = connection.test.command('buildInfo') + mongodb_version = tuple([int(i) for i in info['version'].split('.')]) + if mongodb_version < (2, 6, 4): + raise SkipTest("Need MongoDB version 2.6.4+") + class Point(Document): location = GeoPointField()