Skip to content
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

tests: test_fileio.py: don't follow symlinks in /dev #626

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

jirislaby
Copy link
Contributor

There might be a broken one like /dev/log and this causes the tests to fail.

This is highly is unpredictable, because os.scandir() sometimes returns a block device, sometimes the broken link is hit.

So pass follow_symlinks=False to entry.stat().

There might be a broken one like /dev/log and this causes the tests to
fail.

This is highly is unpredictable, because os.scandir() sometimes returns
a block device, sometimes the broken link is hit.

So pass follow_symlinks=False to entry.stat().
@agronholm agronholm merged commit 9ba2544 into agronholm:master Nov 3, 2023
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants