diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-03-06 16:34:34 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-03-06 16:34:34 -0500 |
| commit | 4334bd87fdb0e60ed6e019ad2eb3ee103032d316 (patch) | |
| tree | ea7589e0deef71e2ec2bc1fb2b223f0ff86f0e8c | |
| parent | a74ff3188c036c18e400c0219d489356aa5183d3 (diff) | |
| download | python-setuptools-bitbucket-4334bd87fdb0e60ed6e019ad2eb3ee103032d316.tar.gz | |
Remove unnecessary block
| -rw-r--r-- | setuptools/tests/test_easy_install.py | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index 6e2b25dd..7d61fb83 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -201,20 +201,17 @@ class TestUserInstallTest: The local index must be used when easy_install locates installed packages. """ - try: - dist = Distribution() - dist.script_name = 'setup.py' - cmd = ei.easy_install(dist) - cmd.install_dir = install_target - cmd.args = ['foo'] - cmd.ensure_finalized() - cmd.local_index.scan([foo_package]) - res = cmd.easy_install('foo') - actual = os.path.normcase(os.path.realpath(res.location)) - expected = os.path.normcase(os.path.realpath(foo_package)) - assert actual == expected - finally: - pass + dist = Distribution() + dist.script_name = 'setup.py' + cmd = ei.easy_install(dist) + cmd.install_dir = install_target + cmd.args = ['foo'] + cmd.ensure_finalized() + cmd.local_index.scan([foo_package]) + res = cmd.easy_install('foo') + actual = os.path.normcase(os.path.realpath(res.location)) + expected = os.path.normcase(os.path.realpath(foo_package)) + assert actual == expected @contextlib.contextmanager def user_install_setup_context(self, *args, **kwargs): |
