summaryrefslogtreecommitdiff
path: root/tests/extmod/socket_badconstructor.py
AgeCommit message (Collapse)Author
2025-09-16unix/modsocket: Use type-checking mp_obj_get_int.Jeff Epler
MP_OBJ_SMALL_INT_VALUE would give erroneous results, such as assertion failures in the coverage build and other oddities like: >>> s = socket.socket() >>> s.recv(3.14) MemoryError: memory allocation failed, allocating 4235896656 bytes Signed-off-by: Jeff Epler <jepler@gmail.com>