Projet

Général

Profil

0001-python3-PIL.Image.open-takes-a-file-path-as-first-pa.patch

Paul Marillonnet, 06 mars 2019 21:46

Télécharger (1,06 ko)

Voir les différences:

Subject: [PATCH] python3: PIL.Image.open takes a file path as first paramater
 (#31179)

 tests/test_attribute_kinds.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/test_attribute_kinds.py
438 438
    form = response.form
439 439
    form.set('edit-profile-cityscape_image', Upload('tests/201x201.jpg'))
440 440
    response = form.submit()
441
    image = PIL.Image.open(open(os.path.join(settings.MEDIA_ROOT, john().attributes.cityscape_image.name)))
441
    image = PIL.Image.open(os.path.join(settings.MEDIA_ROOT, john().attributes.cityscape_image.name))
442 442
    assert image.width == 200
443 443
    assert image.height == 200
444 444
    assert john().attributes.cityscape_image.name != profile_filename
445
-