Skip to content

Commit

Permalink
[#1651] Skip tests all together on Python 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Nov 17, 2015
1 parent 9ef3f9e commit 9d693b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
9 changes: 4 additions & 5 deletions ckanext/datapusher/tests/test.py
Expand Up @@ -47,11 +47,10 @@ def setup_class(cls):
set_url_type(
model.Package.get('annakarenina').resources, cls.sysadmin_user)

# Httpretty crashes with Solr on Python 2.6, disable the automatic
# Solr indexing
if (sys.version_info[0] == 2 and sys.version_info[1] == 6
and p.plugin_loaded('synchronous_search')):
p.unload('synchronous_search')
# Httpretty crashes with Solr on Python 2.6,
# skip the tests
if (sys.version_info[0] == 2 and sys.version_info[1] == 6):
raise nose.SkipTest()

@classmethod
def teardown_class(cls):
Expand Down
10 changes: 5 additions & 5 deletions ckanext/resourceproxy/tests/test_proxy.py
Expand Up @@ -3,6 +3,7 @@
import unittest
import json
import httpretty
import nose

import paste.fixture
from pylons import config
Expand Down Expand Up @@ -57,11 +58,10 @@ def setup_class(cls):
wsgiapp = middleware.make_app(config['global_conf'], **config)
cls.app = paste.fixture.TestApp(wsgiapp)
create_test_data.CreateTestData.create()
# Httpretty crashes with Solr on Python 2.6, disable the automatic
# Solr indexing
if (sys.version_info[0] == 2 and sys.version_info[1] == 6
and p.plugin_loaded('synchronous_search')):
p.unload('synchronous_search')
# Httpretty crashes with Solr on Python 2.6,
# skip the tests
if (sys.version_info[0] == 2 and sys.version_info[1] == 6):
raise nose.SkipTest()

@classmethod
def teardown_class(cls):
Expand Down

0 comments on commit 9d693b6

Please sign in to comment.