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

Test failure on OS X framework build #396

bb-migration opened this Issue Jun 13, 2015 · 1 comment


None yet
1 participant

bb-migration commented Jun 13, 2015

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

Currently, a test fails on OS X under Python 3.4 framework build due to the setting of __PYVENV_LAUNCHER__:

$ python test --addopts='-k environment_with_spaces'
====================================== test session starts =======================================
platform darwin -- Python 3.4.3 -- py-1.4.28 -- pytest-2.6.4
collected 128 items / 2 skipped 

setuptools/tests/ F
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> traceback >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

self = <setuptools.tests.test_easy_install.TestCommandSpec object at 0x1048f3e80>

    def test_from_environment_with_spaces_in_executable(self):
        with mock.patch('sys.executable', TestScriptHeader.exe_with_spaces):
            cmd = ei.CommandSpec.from_environment()
        assert len(cmd) == 1
>       assert cmd.as_header().startswith('#!"')
E       assert <built-in method startswith of str object at 0x1048f74e0>('#!"')
E        +  where <built-in method startswith of str object at 0x1048f74e0> = '#!/Library/Frameworks/Python.framework/Versions/3.4/bin/python3\n'.startswith
E        +    where '#!/Library/Frameworks/Python.framework/Versions/3.4/bin/python3\n' = <bound method CommandSpec.as_header of ['/Library/Frameworks/Python.framework/Versions/3.4/bin/python3']>()
E        +      where <bound method CommandSpec.as_header of ['/Library/Frameworks/Python.framework/Versions/3.4/bin/python3']> = ['/Library/Frameworks/Python.framework/Versions/3.4/bin/python3'].as_header

setuptools/tests/ AssertionError


This comment has been minimized.

bb-migration commented Jun 13, 2015

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

Fix test failure when PYVENV_LAUNCHER is set. Fixes #396.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment