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
Fix an INTERNAL ERROR when creating cobertura output for namespace package (#20112)
Fixes#19843
This fixes an Internal Error where namespace packages were not supported
properly. We have to use `os.path.isdir(path)` instead of trying to
catch an `IsADirectoryError` exception because of a bug on Windows which
causes it to throw a `PermissionError` instead in [the relevant
situation](https://discuss.python.org/t/permissionerror-errno-13-permission-denied-python-2023/22360/8),
which makes `except IsADirectoryError` unreliable. (We also can't just
`except (IsADirectoryError, PermissionError)` because what if there is
an actual permission error?)
0 commit comments