diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -632,6 +632,14 @@ class NetworkedTests(unittest.TestCase): + def setUp(self): + self._orig_env = os.environ + os.environ = os.environ.copy() + os.putenv('OPENSSL_X509_TEA_DISABLE', '1') + + def tearDown(self): + os.putenv('OPENSSL_X509_TEA_DISABLE', '') + os.environ = self._orig_env def test_connect(self): with support.transient_internet("svn.python.org"):