You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Handle ValueError in filecmp.dircmp and filecmp.cmpfiles #122400
In filecmp.cmpfiles, when the path is not stat-able, it will be put in the "fancy" files. This should include paths that would raise ValueError.
Note that filecmp.cmp should not be protected against that since it already ignores an OSError possibly raised by os.stat.
Similarly, filecmp.dircmp should not suppress OSError or ValueError when listing the directory contents. It should however silence ValueError when checking the common files since it already silence an OSError.
TL;DR: Only protect against ValueError if the current code is already protecting against OSError.
Activity
gh-122400: Handle ValueError in filecmp (GH-122401)
pythongh-122400: Handle ValueError in filecmp (pythonGH-122401)
pythongh-122400: Handle ValueError in filecmp (pythonGH-122401)
[3.12] gh-122400: Handle ValueError in filecmp (GH-122401) (GH-122442)
[3.13] gh-122400: Handle ValueError in filecmp (GH-122401) (GH-122441)
pythongh-122400: Handle ValueError in filecmp (pythonGH-122401)