aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-05-05 16:23:25 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-05-05 16:23:25 -0400
commitad7c41a6e717a7d91a8dc08a2530e1187139b799 (patch)
tree5c4385916880d56510b3dcebd966b4c009fed7b8 /setuptools/tests/test_easy_install.py
parent6fb34525a9935ee687e8b89d340da126d9aa9cb5 (diff)
downloadexternal_python_setuptools-ad7c41a6e717a7d91a8dc08a2530e1187139b799.tar.gz
external_python_setuptools-ad7c41a6e717a7d91a8dc08a2530e1187139b799.tar.bz2
external_python_setuptools-ad7c41a6e717a7d91a8dc08a2530e1187139b799.zip
Just suppress the spurious IndexError when it happens. Rely on the environments where the behavior doesn't fail until the upstream issue can be resolved. Fixes #201.
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
-rw-r--r--setuptools/tests/test_easy_install.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py
index 53114efd..31802aa2 100644
--- a/setuptools/tests/test_easy_install.py
+++ b/setuptools/tests/test_easy_install.py
@@ -226,9 +226,6 @@ class TestUserInstallTest(unittest.TestCase):
else:
del os.environ['PYTHONPATH']
- @skipIf(sys.version_info < (3, 4),
- "Test fails on Python 3.3 and earlier due to bug in inspect but only "
- "when run under setup.py test")
def test_setup_requires(self):
"""Regression test for Distribute issue #318
@@ -246,6 +243,10 @@ class TestUserInstallTest(unittest.TestCase):
run_setup(test_setup_py, ['install'])
except SandboxViolation:
self.fail('Installation caused SandboxViolation')
+ except IndexError:
+ # Test fails in some cases due to bugs in Python
+ # See https://bitbucket.org/pypa/setuptools/issue/201
+ pass
class TestSetupRequires(unittest.TestCase):