diff options
| author | PJ Eby <distutils-sig@python.org> | 2008-01-18 21:51:23 +0000 | 
|---|---|---|
| committer | PJ Eby <distutils-sig@python.org> | 2008-01-18 21:51:23 +0000 | 
| commit | 7c4938d53774c51b441970e177ce72cc3bdf68ce (patch) | |
| tree | d69680614e16597ee20ded8c4e04d3d66fcfd78f /setuptools/tests/test_packageindex.py | |
| parent | ce75692a87b83cef9ea539fc76f4a544b1398b35 (diff) | |
| download | python-setuptools-git-7c4938d53774c51b441970e177ce72cc3bdf68ce.tar.gz | |
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.py | 6 | 
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))  | 
