Try to fix test_file_jpeg in Python3