0001-python3-PIL.Image.open-takes-a-file-path-as-first-pa.patch
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 |
- |