bpo-38807: Add os.PathLike to exception message raised by _check_arg_types (GH-17160) (GH-17249)

(cherry picked from commit fe75b62575bcfdf1c39be71c1e50257832a596db)

Co-authored-by: Tomás Farías <tomasfariassantana@gmail.com>
2 files changed