Whole file

jaraco/path

The author described this change as Add tests covering walk. Fix bug in walk when errors are ignored.. It counts as a record because the check below fails on the code as it stood at 7922165de and passes on a1356defc, with nothing else changed between the two runs.

Fix saved2021-07-24
Sharing licenceMIT ·
Change size+1 0

What the code was meant to do, written into the code itself as a save note

Add tests covering walk. Fix bug in walk when errors are ignored.

The change

559559 do_traverse = traverse()
560560 except Exception as exc:
561561 errors(f"Unable to access '{child}': {exc}")
562+ continue
562563
563564 if do_traverse:
564565 for item in child.walk(errors=errors, match=match):

The check that tells the two apart

failpass·test_path.py::TestBasics::test_walk_child_error

Check file test_path.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before it7922165de86055fa8f6291dcafc9344188085349
Broken version dated2021-07-24
Modulepath.__init__
Units changedPath
Fingerprint300c6f40051a8a25
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.