Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed test w/18.0 #401

Closed
ghost opened this issue Jun 24, 2015 · 1 comment
Closed

Failed test w/18.0 #401

ghost opened this issue Jun 24, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 24, 2015

Originally reported by: felixonmars (Bitbucket: felixonmars, GitHub: felixonmars)


I am getting the following failure when running the shipped tests in 18.0 tarball:

=================================== FAILURES ===================================
_______ TestCommandSpec.test_from_environment_with_spaces_in_executable ________

args = (<setuptools.tests.test_easy_install.TestCommandSpec object at 0x7f2f98f5e5f8>,)
keywargs = {}, extra_args = []
entered_patchers = [<unittest.mock._patch object at 0x7f2f99226978>]
exc_info = (<class 'KeyError'>, KeyError('__PYVENV_LAUNCHER__',), <traceback object at 0x7f2f98065108>)
patching = <unittest.mock._patch object at 0x7f2f99226978>
arg = 'C:\\Program Files\\Python33\\python.exe'

    @wraps(func)
    def patched(*args, **keywargs):
        extra_args = []
        entered_patchers = []

        exc_info = tuple()
        try:
            for patching in patched.patchings:
                arg = patching.__enter__()
                entered_patchers.append(patching)
                if patching.attribute_name is not None:
                    keywargs.update(arg)
                elif patching.new is DEFAULT:
                    extra_args.append(arg)

            args += tuple(extra_args)
>           return func(*args, **keywargs)

/usr/lib/python3.4/unittest/mock.py:1136:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.4/unittest/mock.py:1549: in _inner
    return f(*args, **kw)
setuptools/tests/test_easy_install.py:494: in test_from_environment_with_spaces_in_executable
    del os.environ['__PYVENV_LAUNCHER__']
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = environ({'USERNAME': 'builduser', 'SUDO_COMMAND': '/usr/bin/makepkg -s --noconfirm -L --holdver -i', 'SUDO_GID': '0', ... 'root', 'PATH': '/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl'})
key = '__PYVENV_LAUNCHER__'

    def __delitem__(self, key):
        encodedkey = self.encodekey(key)
        self.unsetenv(encodedkey)
        try:
            del self._data[encodedkey]
        except KeyError:
            # raise KeyError with the original key value
>           raise KeyError(key) from None
E           KeyError: '__PYVENV_LAUNCHER__'

/usr/lib/python3.4/os.py:649: KeyError
========= 1 failed, 121 passed, 6 skipped, 2 xfailed in 27.53 seconds ==========

@ghost
Copy link
Author

ghost commented Jun 24, 2015

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Update changelog. Along with f44e81f2f62f, fixes #401.

@ghost ghost added major bug labels Mar 29, 2016
@ghost ghost closed this as completed Mar 29, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants