diff options
author | Ran Benita <ran@unusedvar.com> | 2020-10-31 13:55:02 +0200 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2020-10-31 14:22:15 +0200 |
commit | 6cdae8ed40e329d82c6ae96dbb3eeff4be5ef5f4 (patch) | |
tree | eb0387ab63a82c9179c195f913f57d66c9f468db /src/_pytest/pathlib.py | |
parent | a7e38c5c61928033a2dc1915cbee8caa8544a4d0 (diff) | |
download | pytest-6cdae8ed40e329d82c6ae96dbb3eeff4be5ef5f4.tar.gz |
pathlib: fix symlinked directories not followed during collection
Diffstat (limited to 'src/_pytest/pathlib.py')
-rw-r--r-- | src/_pytest/pathlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/_pytest/pathlib.py b/src/_pytest/pathlib.py index f0bdb1481..b96cba069 100644 --- a/src/_pytest/pathlib.py +++ b/src/_pytest/pathlib.py @@ -558,7 +558,7 @@ def visit( entries = sorted(os.scandir(path), key=lambda entry: entry.name) yield from entries for entry in entries: - if entry.is_dir(follow_symlinks=False) and recurse(entry): + if entry.is_dir() and recurse(entry): yield from visit(entry.path, recurse) |