diff --git a/ckanext/datapusher/tests/test.py b/ckanext/datapusher/tests/test.py index 65150b1f7dc..c3c1d8069f7 100644 --- a/ckanext/datapusher/tests/test.py +++ b/ckanext/datapusher/tests/test.py @@ -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): diff --git a/ckanext/resourceproxy/tests/test_proxy.py b/ckanext/resourceproxy/tests/test_proxy.py index b4f64785ce7..de15c7eccd3 100644 --- a/ckanext/resourceproxy/tests/test_proxy.py +++ b/ckanext/resourceproxy/tests/test_proxy.py @@ -3,6 +3,7 @@ import unittest import json import httpretty +import nose import paste.fixture from pylons import config @@ -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):