Commit 3b1a22a6 authored by Tarek Ziade's avatar Tarek Ziade

Issue #12109 fixing typo in packaging's test_command_upload_docs

parent 1231a4e0
......@@ -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'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment