mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Issue #20900: distutils register command now decodes HTTP responses correctly
Initial patch by ingrid.
This commit is contained in:
parent
87a8bcc221
commit
904a2ef2e2
4 changed files with 21 additions and 4 deletions
|
@ -140,7 +140,7 @@ class uploadTestCase(PyPIRCCommandTestCase):
|
|||
|
||||
# The PyPI response body was echoed
|
||||
results = self.get_logs(INFO)
|
||||
self.assertIn('xyzzy\n', results[-1])
|
||||
self.assertEqual(results[-1], 75 * '-' + '\nxyzzy\n' + 75 * '-')
|
||||
|
||||
def test_upload_fails(self):
|
||||
self.next_msg = "Not Found"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue