mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 13:14:27 +03:00
Merge pull request #6854 from radarhere/bytes
This commit is contained in:
commit
2301342f05
|
@ -58,10 +58,7 @@ def test_path():
|
|||
assert list(p) == [(0.0, 1.0)]
|
||||
|
||||
arr = array.array("f", [0, 1])
|
||||
if hasattr(arr, "tobytes"):
|
||||
p = ImagePath.Path(arr.tobytes())
|
||||
else:
|
||||
p = ImagePath.Path(arr.tostring())
|
||||
p = ImagePath.Path(arr.tobytes())
|
||||
assert list(p) == [(0.0, 1.0)]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user