From 5825189e685d67106cd0f70489e84eb8a37885c8 Mon Sep 17 00:00:00 2001 From: Oli Kingshott Date: Thu, 3 May 2018 20:56:26 +0800 Subject: [PATCH] skip TestHTTPWithoutSSL --- test/with_dummyserver/test_no_ssl.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/with_dummyserver/test_no_ssl.py b/test/with_dummyserver/test_no_ssl.py index e37794d5..a3f837a9 100644 --- a/test/with_dummyserver/test_no_ssl.py +++ b/test/with_dummyserver/test_no_ssl.py @@ -8,10 +8,17 @@ from dummyserver.testcase import ( HTTPDummyServerTestCase, HTTPSDummyServerTestCase) +import pytest import urllib3 class TestHTTPWithoutSSL(HTTPDummyServerTestCase, TestWithoutSSL): + + @pytest.mark.skip(reason=( + "TestWithoutSSL mutates sys.modules." + "This breaks the backend loading code which imports modules at runtime." + "See discussion at https://github.com/python-trio/urllib3/pull/42" + )) def test_simple(self): pool = urllib3.HTTPConnectionPool(self.host, self.port) self.addCleanup(pool.close)