Skip to content

Test failure on OS X framework build #396

@ghost

Description

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 setup.py 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/test_easy_install.py 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/test_easy_install.py:495: AssertionError

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions