bpo-43651: Fix EncodingWarning in test_file and test_file_eintr (GH-25109)

2 files changed