fix bytearray.startswith not available in CircuitPython

This commit is contained in:
Christian Tu
2022-02-02 22:50:45 +01:00
committed by Kyle Brown
parent b6201d43d4
commit f90de872d8
2 changed files with 3 additions and 2 deletions

View File

@@ -58,6 +58,8 @@ class KeyboardTest:
for hid_report in hid_send_call_arg_list:
print(hid_report)
assert len(hid_send_call_arg_list) >= len(assert_hid_reports)
for i, hid_report in enumerate(
hid_send_call_arg_list[-len(assert_hid_reports) :]
):