Skip to content

Commit f43157b

Browse files
author
Filip Jagodzinski
committed
Tests: USB: Fix Python 3 compatibility
1 parent 0e89cb6 commit f43157b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TESTS/host_tests/pyusb_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,7 @@ def ep_test_abort(dev, log, verbose=False):
13391339
payload_size = (NUM_PACKETS_UNTIL_ABORT + NUM_PACKETS_AFTER_ABORT) * ep_out.wMaxPacketSize
13401340
num_bytes_written = 0
13411341
while num_bytes_written < payload_size:
1342-
payload_out = array.array('B', (num_bytes_written/ep_out.wMaxPacketSize
1342+
payload_out = array.array('B', (num_bytes_written//ep_out.wMaxPacketSize
13431343
for _ in range(ep_out.wMaxPacketSize)))
13441344
try:
13451345
num_bytes_written += ep_out.write(payload_out)

0 commit comments

Comments
 (0)