Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: fix TypeError: string argument expected, got 'bytes' on Py3 #341

Merged
merged 1 commit into from
Sep 28, 2013
Merged

Conversation

cgohlke
Copy link
Contributor

@cgohlke cgohlke commented Sep 27, 2013

Fixes two test errors on Python 3:

Tests\test_file_webp_metadata.py:45: image.save(buffer, "webp", exif=expected_exif) failed:
Traceback (most recent call last):
  File "Tests\test_file_webp_metadata.py", line 45, in test_write_exif_metadata
    image.save(buffer, "webp", exif=expected_exif)
  File "PIL\Image.py", line 1441, in save
    save_handler(self, fp, filename)
  File "PIL\WebPImagePlugin.py", line 70, in _save
    fp.write(data)
TypeError: string argument expected, got 'bytes'
Tests\test_file_webp_metadata.py:78: image.save(buffer, "webp", icc_profile=expected_icc_profile) failed:
Traceback (most recent call last):
  File "Tests\test_file_webp_metadata.py", line 78, in test_write_icc_metadata
    image.save(buffer, "webp", icc_profile=expected_icc_profile)
  File "PIL\Image.py", line 1441, in save
    save_handler(self, fp, filename)
  File "PIL\WebPImagePlugin.py", line 70, in _save
    fp.write(data)
TypeError: string argument expected, got 'bytes'

aclark4life added a commit that referenced this pull request Sep 28, 2013
TST: fix TypeError: string argument expected, got 'bytes' on Py3
@aclark4life aclark4life merged commit 2d4fec1 into python-pillow:master Sep 28, 2013
@aclark4life
Copy link
Member

Thanks

radarhere pushed a commit to radarhere/Pillow that referenced this pull request Sep 24, 2023
Do not install OpenBLAS on macOS for NumPy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants