aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-03-06 16:34:34 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-03-06 16:34:34 -0500
commit427b3bf0f2ddc07cc01637605277ca555d5b26ce (patch)
tree4aa124c895b72d1c30ffb902fd12b5d95a2c71c6 /setuptools/tests
parentc3b4d4bc997f71943b29bb8dccbdfcbc72bd7488 (diff)
downloadexternal_python_setuptools-427b3bf0f2ddc07cc01637605277ca555d5b26ce.tar.gz
external_python_setuptools-427b3bf0f2ddc07cc01637605277ca555d5b26ce.tar.bz2
external_python_setuptools-427b3bf0f2ddc07cc01637605277ca555d5b26ce.zip
Remove unnecessary block
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_easy_install.py25
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):