aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_packageindex.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2008-01-18 21:51:23 +0000
committerPJ Eby <distutils-sig@python.org>2008-01-18 21:51:23 +0000
commit7c4938d53774c51b441970e177ce72cc3bdf68ce (patch)
treed69680614e16597ee20ded8c4e04d3d66fcfd78f /setuptools/tests/test_packageindex.py
parentce75692a87b83cef9ea539fc76f4a544b1398b35 (diff)
downloadexternal_python_setuptools-7c4938d53774c51b441970e177ce72cc3bdf68ce.tar.gz
external_python_setuptools-7c4938d53774c51b441970e177ce72cc3bdf68ce.tar.bz2
external_python_setuptools-7c4938d53774c51b441970e177ce72cc3bdf68ce.zip
chmod/test cleanups and Jython compatibility (backport from trunk)
--HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4060062
Diffstat (limited to 'setuptools/tests/test_packageindex.py')
-rw-r--r--setuptools/tests/test_packageindex.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/tests/test_packageindex.py b/setuptools/tests/test_packageindex.py
index a2ca36ad..2d619a08 100644
--- a/setuptools/tests/test_packageindex.py
+++ b/setuptools/tests/test_packageindex.py
@@ -2,7 +2,7 @@
"""
# More would be better!
-import os, shutil, tempfile, unittest
+import os, shutil, tempfile, unittest, urllib2
import pkg_resources
import setuptools.package_index
@@ -12,8 +12,8 @@ class TestPackageIndex(unittest.TestCase):
index = setuptools.package_index.PackageIndex()
url = 'http://127.0.0.1/nonesuch/test_package_index'
try:
- index.open_url(url)
+ v = index.open_url(url)
except Exception, v:
self.assert_(url in str(v))
else:
- self.assert_(False)
+ self.assert_(isinstance(v,urllib2.HTTPError))