Commit d138579b authored by Jason R. Coombs's avatar Jason R. Coombs

Update test to match new expectation following pull request #109. Refs #285.

parent 3da62c79
...@@ -156,15 +156,17 @@ class TestUserInstallTest: ...@@ -156,15 +156,17 @@ class TestUserInstallTest:
@mock.patch('setuptools.command.easy_install.__file__', None) @mock.patch('setuptools.command.easy_install.__file__', None)
def test_user_install_implied(self): def test_user_install_implied(self):
# simulate setuptools installed in user site packages
easy_install_pkg.__file__ = site.USER_SITE easy_install_pkg.__file__ = site.USER_SITE
site.ENABLE_USER_SITE = True # disabled sometimes site.ENABLE_USER_SITE = True
#XXX: replace with something meaningfull
# create a finalized easy_install command
dist = Distribution() dist = Distribution()
dist.script_name = 'setup.py' dist.script_name = 'setup.py'
cmd = ei.easy_install(dist) cmd = ei.easy_install(dist)
cmd.args = ['py'] cmd.args = ['py']
cmd.ensure_finalized() cmd.ensure_finalized()
assert cmd.user, 'user should be implied' assert not cmd.user, 'user should not be implied'
def test_multiproc_atexit(self): def test_multiproc_atexit(self):
try: try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment