|
Lines 25-30
Link Here
|
| 25 |
import time |
25 |
import time |
| 26 |
import unittest |
26 |
import unittest |
| 27 |
import urlparse |
27 |
import urlparse |
|
|
28 |
import platform |
| 28 |
try: |
29 |
try: |
| 29 |
import ssl |
30 |
import ssl |
|
Lines 469-474
Link Here
|
| 469 |
self.assertEqual(200, response.status) |
469 |
self.assertEqual(200, response.status) |
| 470 |
self.assertNotEqual(None, response.previous) |
470 |
self.assertNotEqual(None, response.previous) |
| 471 |
|
471 |
|
|
|
472 |
@unittest.skipIf(hasattr(platform, "python_implementation") and platform.python_implementation() == "PyPy", "Test does not work with PyPy") |
| 472 |
def testSslCertValidation(self): |
473 |
def testSslCertValidation(self): |
| 473 |
if sys.version_info >= (2, 6): |
474 |
if sys.version_info >= (2, 6): |
| 474 |
# Test that we get an ssl.SSLError when specifying a non-existent CA |
475 |
# Test that we get an ssl.SSLError when specifying a non-existent CA |