aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_easy_install.py
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com>2012-11-26 07:27:32 +0100
committerArfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com>2012-11-26 07:27:32 +0100
commitf31fb0ff20c63dd9bb82f91af45c12e97428e38c (patch)
treef504a7877a5cfc09e58478cce4cc28884c5bf961 /setuptools/tests/test_easy_install.py
parentcbcd321ebc204d04a4460ecc3accfb245b9ffacd (diff)
downloadexternal_python_setuptools-f31fb0ff20c63dd9bb82f91af45c12e97428e38c.tar.gz
external_python_setuptools-f31fb0ff20c63dd9bb82f91af45c12e97428e38c.tar.bz2
external_python_setuptools-f31fb0ff20c63dd9bb82f91af45c12e97428e38c.zip
Fix some DeprecationWarnings and ResourceWarnings.
--HG-- branch : distribute extra : rebase_source : 1293f856181d35c735670b021e8745208103f640
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
-rw-r--r--setuptools/tests/test_easy_install.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py
index 7ed0cd37..2f295b5c 100644
--- a/setuptools/tests/test_easy_install.py
+++ b/setuptools/tests/test_easy_install.py
@@ -236,7 +236,7 @@ class TestUserInstallTest(unittest.TestCase):
f = open(egg_file, 'w')
try:
f.write('Name: foo\n')
- except:
+ finally:
f.close()
sys.path.append(target)
@@ -387,7 +387,7 @@ class TestSetupRequires(unittest.TestCase):
lines = stdout.splitlines()
self.assertTrue(len(lines) > 0)
- self.assert_(lines[-1].strip(), 'test_pkg')
+ self.assertTrue(lines[-1].strip(), 'test_pkg')
try:
tempdir_context(setup_and_run)