expect stderr output when installing some packages via setuptools; needed for tests to pass on Python 2.7rc1

This commit is contained in:
Carl Meyer 2010-06-05 23:35:00 -04:00
parent f816a13a1a
commit f41a4a520e
2 changed files with 3 additions and 3 deletions

View File

@ -296,7 +296,7 @@ class TestPipEnvironment(TestFileEnvironment):
'uninstall', '-vvv', '-y', 'pip')
# Install this version instead
self.run('python', 'setup.py', 'install', cwd=src)
self.run('python', 'setup.py', 'install', cwd=src, expect_stderr=True)
def run(self, *args, **kw):
if self.verbose:

View File

@ -23,7 +23,7 @@ def test_uninstall_with_scripts():
"""
env = reset_env()
result = env.run('easy_install', 'PyLogo')
result = env.run('easy_install', 'PyLogo', expect_stderr=True)
easy_install_pth = env.site_packages/ 'easy-install.pth'
pylogo = sys.platform == 'win32' and 'pylogo' or 'PyLogo'
assert(pylogo in result.files_updated[easy_install_pth].bytes)
@ -63,7 +63,7 @@ def test_uninstall_easy_installed_console_scripts():
"""
env = reset_env()
result = env.run('easy_install', 'virtualenv')
result = env.run('easy_install', 'virtualenv', expect_stderr=True)
assert env.bin/'virtualenv'+env.exe in result.files_created, sorted(result.files_created.keys())
result2 = run_pip('uninstall', 'virtualenv', '-y')
assert_all_changes(result, result2, [env.venv/'build', 'cache'])