Files
pytest2/testing
Cserna Zsolt 8a38e7a6e8 Fix handling recursive symlinks
When pytest was run on a directory containing a recursive symlink it failed
with ELOOP as the library was not able to determine the type of the
direntry:

src/_pytest/main.py:685: in collect
    if not direntry.is_file():
E   OSError: [Errno 40] Too many levels of symbolic links: '/home/florian/proj/pytest/tests/recursive'

This is fixed by handling ELOOP and other errors in the visit function in
pathlib.py, so the entries whose is_file() call raises an OSError with the
pre-defined list of error numbers will be exluded from the result.

The _ignore_errors function was copied from Lib/pathlib.py of cpython 3.9.

Fixes #7951
2020-10-31 17:40:56 +01:00
..
2020-10-19 10:47:35 +03:00
2020-10-05 18:33:17 -07:00
2020-08-03 10:10:43 +03:00
2020-10-05 18:33:17 -07:00
2020-10-03 12:46:54 -07:00
2020-10-05 18:33:17 -07:00
2020-10-17 19:25:45 +03:00
2020-10-05 18:33:17 -07:00
2020-10-17 19:25:45 +03:00
2020-10-03 12:46:54 -07:00
2020-10-05 18:33:17 -07:00
2020-10-03 12:46:54 -07:00
2020-10-03 12:46:54 -07:00
2020-10-05 18:33:17 -07:00
2020-10-05 18:33:17 -07:00
2020-07-21 21:21:09 +03:00
2020-10-17 19:25:45 +03:00
2020-10-05 18:33:17 -07:00
2020-10-05 18:33:17 -07:00
2020-10-25 01:27:44 +02:00
2020-10-03 12:46:54 -07:00
2020-10-05 18:33:17 -07:00
2020-10-05 18:33:17 -07:00
2020-10-05 18:33:17 -07:00