You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, when I ran tox on my machine I got OSError [Errno 18] Invalid cross-device link at these tests:
tests/test_python.py::test_python_versions
tests/test_python.py::test_shims_are_kept
tests/test_python.py::test_shims_are_removed
I think it is because my system uses different filesystem for /tmp directory, so when setup_pythons function in confest.py makes hard link, it fails. I wanted to ask if this issue is worth fixing.
I can possibly workaround that by editing tox.ini with this option of the pytest --basetemp=mydir.
The output of the test:
platform linux -- Python 3.7.2, pytest-4.4.0, py-1.8.0, pluggy-0.9.0
cachedir: .tox/py37/.pytest_cache
rootdir: /home/pkopkan/Documents/rpm/python-pythonfinder/work_on_test/pythonfinder-1.2.0, inifile: setup.cfg, testpaths: tests/
plugins: timeout-1.3.3, cov-2.6.1
timeout: 300.0s
timeout method: signal
timeout func_only: False
collected 47 items
==================================== ERRORS ====================================
____________________ ERROR at setup of test_python_versions ____________________
the tests currently rely either symlinks or hardlinks depending on the OS in question, and that is unfortunately not about to change as the alternative is to install pyenv
This is not something I plan to work on anytime in the future so feel free to PR A fix if you want
Hello, when I ran tox on my machine I got
OSError [Errno 18] Invalid cross-device
link at these tests:I think it is because my system uses different filesystem for /tmp directory, so when
setup_pythons
function in confest.py makes hard link, it fails. I wanted to ask if this issue is worth fixing.I can possibly workaround that by editing tox.ini with this option of the pytest --basetemp=mydir.
The output of the test:
platform linux -- Python 3.7.2, pytest-4.4.0, py-1.8.0, pluggy-0.9.0 cachedir: .tox/py37/.pytest_cache rootdir: /home/pkopkan/Documents/rpm/python-pythonfinder/work_on_test/pythonfinder-1.2.0, inifile: setup.cfg, testpaths: tests/ plugins: timeout-1.3.3, cov-2.6.1 timeout: 300.0s timeout method: signal timeout func_only: False collected 47 itemstests/test_python.py E.....EE [ 17%]
tests/test_utils.py ....................................... [100%]
==================================== ERRORS ====================================
____________________ ERROR at setup of test_python_versions ____________________
tmpdir = local('/tmp/pytest-of-pkopkan/pytest-4/test_python_versions0')
E OSError: [Errno 18] Invalid cross-device link: '/usr/bin/python2.7' -> '/tmp/pytest-of-pkopkan/pytest-4/test_python_versions0/python2.7+/bin/python'
tests/conftest.py:242: OSError
____________________ ERROR at setup of test_shims_are_kept _____________________
tmpdir = local('/tmp/pytest-of-pkopkan/pytest-4/test_shims_are_kept0')
E OSError: [Errno 18] Invalid cross-device link: '/home/pkopkan/Documents/rpm/python-pythonfinder/work_on_test/pythonfinder-1.2.0/.tox/py37/bin/python' -> '/tmp/tmpgi7vwy2f/.pyenv/versions/stackless-dev/bin/python'
tests/conftest.py:215: OSError
___________________ ERROR at setup of test_shims_are_removed ___________________
tmpdir = local('/tmp/pytest-of-pkopkan/pytest-4/test_shims_are_removed0')
E OSError: [Errno 18] Invalid cross-device link: '/home/pkopkan/Documents/rpm/python-pythonfinder/work_on_test/pythonfinder-1.2.0/.tox/py37/bin/python' -> '/tmp/tmpeq3v8sot/.pyenv/versions/stackless-dev/bin/python'
tests/conftest.py:215: OSError
=========================== short test summary info ============================
ERROR tests/test_python.py::test_python_versions
ERROR tests/test_python.py::test_shims_are_kept
ERROR tests/test_python.py::test_shims_are_removed
====================== 44 passed, 3 error in 0.97 seconds ======================
ERROR: InvocationError for command '/home/pkopkan/Documents/rpm/python-pythonfinder/work_on_test/pythonfinder-1.2.0/.tox/py37/bin/coverage run -m pytest' (exited with code 1)
___________________________________ summary ____________________________________
ERROR: py37: commands failed
The text was updated successfully, but these errors were encountered: