paylogic / pip-accel

pip-accel: Accelerator for pip, the Python package manager
https://pypi.python.org/pypi/pip-accel
MIT License
308 stars 35 forks source link

Fix tests under OS X. #58

Closed theyoprst closed 9 years ago

theyoprst commented 9 years ago

Without this fix the followin error appears on my machine during "tox" command:

>       assert python_module.startswith(git_checkout), "Editable Python module not located under git checkout of project!"
E       AssertionError: Editable Python module not located under git checkout of project!
E       assert <built-in method startswith of unicode object at 0x110193cf0>('/var/folders/14/0chn1ycd3ts7btmvnthw3n344h1k2m/T/tmpXBWxd8/verboselogs')
E        +  where <built-in method startswith of unicode object at 0x110193cf0> = '/private/var/folders/14/0chn1ycd3ts7btmvnthw3n344h1k2m/T/tmpXBWxd8/verboselogs/verboselogs.py'.startswith

pip_accel/tests.py:522: AssertionError
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================ 1 failed, 5 passed in 5.42 seconds =================================
ERROR: InvocationError: '/Users/yoprst/Projects/pip-accel/.tox/py26/bin/py.test --capture=no --exitfirst pip_accel/tests.py'
xolox commented 9 years ago

Thanks for the pull request, this is now merged!