diff options
| author | Donald Stufft <donald@stufft.io> | 2016-07-06 16:18:39 -0400 |
|---|---|---|
| committer | Donald Stufft <donald@stufft.io> | 2016-07-06 16:18:39 -0400 |
| commit | cbbadc228b01710721939a776b4f2dd008e9c322 (patch) | |
| tree | 3926138049f79b7c392441ca2e3039fbfd7361d4 /tests/test_upload.py | |
| parent | 4e0ac6d444c79d2858a6d3cb8b7b523ccf3f54e3 (diff) | |
| download | python-setuptools-git-cbbadc228b01710721939a776b4f2dd008e9c322.tar.gz | |
Switch to the new upload url for PyPI
Diffstat (limited to 'tests/test_upload.py')
| -rw-r--r-- | tests/test_upload.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_upload.py b/tests/test_upload.py index dccaf77e..bf4d558b 100644 --- a/tests/test_upload.py +++ b/tests/test_upload.py @@ -90,7 +90,7 @@ class uploadTestCase(PyPIRCCommandTestCase): cmd.finalize_options() for attr, waited in (('username', 'me'), ('password', 'secret'), ('realm', 'pypi'), - ('repository', 'https://pypi.python.org/pypi')): + ('repository', 'https://upload.pypi.io/legacy/')): self.assertEqual(getattr(cmd, attr), waited) def test_saved_password(self): @@ -131,7 +131,7 @@ class uploadTestCase(PyPIRCCommandTestCase): content_type = headers['Content-type'] self.assertTrue(content_type.startswith('multipart/form-data')) self.assertEqual(self.last_open.req.get_method(), 'POST') - expected_url = 'https://pypi.python.org/pypi' + expected_url = 'https://upload.pypi.io/legacy/' self.assertEqual(self.last_open.req.get_full_url(), expected_url) self.assertTrue(b'xxx' in self.last_open.req.data) |
