Skip to content

Commit 509f7df

Browse files
committed
test b64 on arrays with only 1 item as well
1 parent 9b0be90 commit 509f7df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/image/convert_b64.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ def arraysToB64(obj, newObj) :
5454
# But here we convert 2 item array to test typed arrays
5555
# in more places.
5656

57-
# skip converting arrays with 1 item or less
58-
if(arr.ndim == 1 and arr.shape[0] < 2) :
57+
# skip converting arrays with no items
58+
if(arr.ndim == 1 and arr.shape[0] < 1) :
5959
newObj[key] = val
6060
continue
6161

0 commit comments

Comments
 (0)