]> granicus.if.org Git - python/commitdiff
Issue #12109 fixing typo in packaging's test_command_upload_docs
authorTarek Ziade <tarek@ziade.org>
Thu, 19 May 2011 11:46:41 +0000 (13:46 +0200)
committerTarek Ziade <tarek@ziade.org>
Thu, 19 May 2011 11:46:41 +0000 (13:46 +0200)
Lib/packaging/tests/test_command_upload_docs.py

index b103894374b90ccd732873248614ba706aaba864..c9147dff30a600de1c29c2da356ba1010c065465 100644 (file)
@@ -141,7 +141,7 @@ class UploadDocsTestCase(support.TempdirManager,
     def test_https_connection(self):
         https_called = False
 
-        orig_https = upload_docs_mod.http.client.HTTPConnection
+        orig_https = upload_docs_mod.http.client.HTTPSConnection
 
         def https_conn_wrapper(*args):
             nonlocal https_called
@@ -159,7 +159,7 @@ class UploadDocsTestCase(support.TempdirManager,
             self.cmd.run()
             self.assertTrue(https_called)
         finally:
-            upload_docs_mod.http.client.HTTPConnection = orig_https
+            upload_docs_mod.http.client.HTTPSConnection = orig_https
 
     def test_handling_response(self):
         self.pypi.default_response_status = '403 Forbidden'