Merge pull request #6854 from radarhere/bytes

This commit is contained in:
Hugo van Kemenade 2023-01-02 15:44:11 +02:00 committed by GitHub
commit 2301342f05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)]