bpo-33635: Handling Bad file descriptor in Path.is_file and related. (GH-8542)

(cherry picked from commit 216b745eafa7cd4a683a8405dcfbd7f5567f504c)

Co-authored-by: Przemysław Spodymek <przemyslaw@spodymek.com>
3 files changed