--- C:/Python27/Lib/distutils/tests/test_register.py.orig Tue Nov 13 19:39:32 2012 +++ C:/Python27/Lib/distutils/tests/test_register.py Tue Nov 13 19:51:26 2012 @@ -192,6 +192,16 @@ self.assertEqual(headers['Content-length'], '290') self.assertTrue('tarek' in req.data) + def test_repository(self): + # testing -r, --repository option asks user to + # provide credentials, missing from .pypirc + cmd = self._get_cmd({}) + cmd.repository = 'https://pypi.python.org/pypi' + try: + cmd.run() + except: + self.fail("'register -r ' failed with exception") + def test_strict(self): # testing the script option # when on, the register command stops if