1ValueError -1 2ValueError 0 3CAN 1 4ValueError 3 5CAN(1) 6True 7CAN(1, CAN.LOOPBACK, extframe=False, auto_restart=False) 8False 9True 10[0, 0, 0, 0, 0, 0, 0, 0] 11True [0, 0, 0, 0, 0, 0, 1, 0] 12(123, False, 0, b'abcd') 13(2047, False, 0, b'abcd') 14(0, False, 0, b'abcd') 15passed 16[42, False, 0, <memoryview>] 0 bytearray(b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') 17[42, False, 0, <memoryview>] 4 bytearray(b'1234\x00\x00\x00\x00\x00\x00') 18[42, False, 0, <memoryview>] 8 bytearray(b'01234567\x00\x00') 19[42, False, 0, <memoryview>] 3 bytearray(b'abc34567\x00\x00') 20b'abc' 21b'def' 22TypeError 23ValueError 24TypeError 25ValueError 26ValueError 27CAN(1, CAN.LOOPBACK, extframe=True, auto_restart=False) 28passed 29('0x8', '0x1c', '0xa', b'ok') 30('0x800', '0x1c00', '0xa00', b'ok') 31('0x80000', '0x1c0000', '0xa0000', b'ok') 32('0x8000000', '0x1c000000', '0xa000000', b'ok') 33cb0 34pending 35cb0 36full 37cb0a 38overflow 39cb1 40pending 41cb1 42full 43cb1a 44overflow 45(1, False, 0, b'11111111') 46(2, False, 1, b'22222222') 47(4, False, 3, b'44444444') 48(5, False, 0, b'55555555') 49(6, False, 1, b'66666666') 50(8, False, 3, b'88888888') 51cb0a 52pending 53cb1a 54pending 55(1, False, 0, b'11111111') 56(5, False, 0, b'55555555') 57False 58(1, False, 0, b'abcde') 59passed 60(2, False, 0, b'abcde') 61(3, False, 0, b'abcde') 62(4, False, 0, b'abcde') 63False 64(5, True, 4, b'') 65(6, True, 5, b'') 66(7, True, 6, b'') 67False 68(32, True, 9, b'') 69OSError(110,) 70