mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 16:22:22 +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)]
|
assert list(p) == [(0.0, 1.0)]
|
||||||
|
|
||||||
arr = array.array("f", [0, 1])
|
arr = array.array("f", [0, 1])
|
||||||
if hasattr(arr, "tobytes"):
|
p = ImagePath.Path(arr.tobytes())
|
||||||
p = ImagePath.Path(arr.tobytes())
|
|
||||||
else:
|
|
||||||
p = ImagePath.Path(arr.tostring())
|
|
||||||
assert list(p) == [(0.0, 1.0)]
|
assert list(p) == [(0.0, 1.0)]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user