diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-03-06 15:46:27 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-03-06 15:46:27 -0500 |
commit | d138579b07086630732fa949a947dfad34a241d5 (patch) | |
tree | de5872011b0342488a86bc37a6dbb332095f69de /setuptools/tests/test_easy_install.py | |
parent | 3da62c7957f183077446caa51a377d06a0a1b8a9 (diff) | |
download | external_python_setuptools-d138579b07086630732fa949a947dfad34a241d5.tar.gz external_python_setuptools-d138579b07086630732fa949a947dfad34a241d5.tar.bz2 external_python_setuptools-d138579b07086630732fa949a947dfad34a241d5.zip |
Update test to match new expectation following pull request #109. Refs #285.
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
-rw-r--r-- | setuptools/tests/test_easy_install.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index b9b2e392..af09d681 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -156,15 +156,17 @@ class TestUserInstallTest: @mock.patch('setuptools.command.easy_install.__file__', None) def test_user_install_implied(self): + # simulate setuptools installed in user site packages easy_install_pkg.__file__ = site.USER_SITE - site.ENABLE_USER_SITE = True # disabled sometimes - #XXX: replace with something meaningfull + site.ENABLE_USER_SITE = True + + # create a finalized easy_install command dist = Distribution() dist.script_name = 'setup.py' cmd = ei.easy_install(dist) cmd.args = ['py'] cmd.ensure_finalized() - assert cmd.user, 'user should be implied' + assert not cmd.user, 'user should not be implied' def test_multiproc_atexit(self): try: |