Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

test_util.py uses os.symlink which can fail on Windows #54

Closed
jayvdb opened this issue Oct 29, 2021 · 1 comment
Closed

test_util.py uses os.symlink which can fail on Windows #54

jayvdb opened this issue Oct 29, 2021 · 1 comment

Comments

@jayvdb
Copy link

jayvdb commented Oct 29, 2021

I am running unprivileged on a corporate laptop, and I encounter the following errors. It would be nice to detect this and skip the tests which depend on it.

FAILED pathspec/tests/test_util.py::IterTreeTest::test_2_0_check_symlink - OSError: symbolic link privilege not held
FAILED pathspec/tests/test_util.py::IterTreeTest::test_2_1_check_realpath - OSError: symbolic link privilege not held
FAILED pathspec/tests/test_util.py::IterTreeTest::test_2_2_links - OSError: symbolic link privilege not held
FAILED pathspec/tests/test_util.py::IterTreeTest::test_2_3_sideways_links - OSError: symbolic link privilege not held
FAILED pathspec/tests/test_util.py::IterTreeTest::test_2_4_recursive_links - OSError: symbolic link privilege not held
FAILED pathspec/tests/test_util.py::IterTreeTest::test_2_5_recursive_circular_links - OSError: symbolic link privilege not held
FAILED pathspec/tests/test_util.py::IterTreeTest::test_2_6_detect_broken_links - OSError: symbolic link privilege not held
FAILED pathspec/tests/test_util.py::IterTreeTest::test_2_7_ignore_broken_links - OSError: symbolic link privilege not held
FAILED pathspec/tests/test_util.py::IterTreeTest::test_2_8_no_follow_links - OSError: symbolic link privilege not held
@cpburnz
Copy link
Owner

cpburnz commented Aug 13, 2022

Those tests will now be skipped when there's a lack of user permissions.

@cpburnz cpburnz closed this as completed Aug 13, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants