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 ==========
Originally reported by: felixonmars (Bitbucket: felixonmars, GitHub: felixonmars)
I am getting the following failure when running the shipped tests in 18.0 tarball: