diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-02-05 21:16:45 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-02-05 21:16:45 -0500 |
commit | 477d825d98155aa143bf6eb985d5d491368c63b1 (patch) | |
tree | c19cb9148242ba9fa697cdaed8e91515dd534d76 /setuptools/tests/test_easy_install.py | |
parent | 92bed83a85874a95faa052b3ffab4f7cbf65c94c (diff) | |
download | external_python_setuptools-477d825d98155aa143bf6eb985d5d491368c63b1.tar.gz external_python_setuptools-477d825d98155aa143bf6eb985d5d491368c63b1.tar.bz2 external_python_setuptools-477d825d98155aa143bf6eb985d5d491368c63b1.zip |
Reindent according to TODO (indent was reserved to minimize the diff)
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
-rw-r--r-- | setuptools/tests/test_easy_install.py | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index 38ee83ea..10c6fb61 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -261,21 +261,20 @@ class TestSetupRequires(unittest.TestCase): # so skip this test for them. return with quiet_context(): - # TODO: correct indentation here - # create an sdist that has a build-time dependency. - with TestSetupRequires.create_sdist() as dist_file: - with tempdir_context() as temp_install_dir: - with environment_context(PYTHONPATH=temp_install_dir): - ei_params = ['--index-url', p_index.url, - '--allow-hosts', p_index_loc, - '--exclude-scripts', '--install-dir', temp_install_dir, - dist_file] - with reset_setup_stop_context(): - with argv_context(['easy_install']): - # attempt to install the dist. It should fail because - # it doesn't exist. - self.assertRaises(SystemExit, - easy_install_pkg.main, ei_params) + # create an sdist that has a build-time dependency. + with TestSetupRequires.create_sdist() as dist_file: + with tempdir_context() as temp_install_dir: + with environment_context(PYTHONPATH=temp_install_dir): + ei_params = ['--index-url', p_index.url, + '--allow-hosts', p_index_loc, + '--exclude-scripts', '--install-dir', temp_install_dir, + dist_file] + with reset_setup_stop_context(): + with argv_context(['easy_install']): + # attempt to install the dist. It should fail because + # it doesn't exist. + self.assertRaises(SystemExit, + easy_install_pkg.main, ei_params) # there should have been two or three requests to the server # (three happens on Python 3.3a) self.assertTrue(2 <= len(p_index.requests) <= 3) |