mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #12109 fixing typo in packaging's test_command_upload_docs
This commit is contained in:
parent
1231a4e097
commit
3b1a22a6df
1 changed files with 2 additions and 2 deletions
|
@ -141,7 +141,7 @@ class UploadDocsTestCase(support.TempdirManager,
|
||||||
def test_https_connection(self):
|
def test_https_connection(self):
|
||||||
https_called = False
|
https_called = False
|
||||||
|
|
||||||
orig_https = upload_docs_mod.http.client.HTTPConnection
|
orig_https = upload_docs_mod.http.client.HTTPSConnection
|
||||||
|
|
||||||
def https_conn_wrapper(*args):
|
def https_conn_wrapper(*args):
|
||||||
nonlocal https_called
|
nonlocal https_called
|
||||||
|
@ -159,7 +159,7 @@ class UploadDocsTestCase(support.TempdirManager,
|
||||||
self.cmd.run()
|
self.cmd.run()
|
||||||
self.assertTrue(https_called)
|
self.assertTrue(https_called)
|
||||||
finally:
|
finally:
|
||||||
upload_docs_mod.http.client.HTTPConnection = orig_https
|
upload_docs_mod.http.client.HTTPSConnection = orig_https
|
||||||
|
|
||||||
def test_handling_response(self):
|
def test_handling_response(self):
|
||||||
self.pypi.default_response_status = '403 Forbidden'
|
self.pypi.default_response_status = '403 Forbidden'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue