python3-simple-websocket: Do not need network access in client ptests

The client unit tests mock socket.socket but not socket.getaddrinfo(), so
every test resolves example.com. Without working DNS in the image (e.g.
yoe-musl-sysvinit qemux86-64) all of tests/test_client.py fails.

Backport the upstream fix that uses localhost instead.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Khem Raj committed 2026-11-06 21:27:18 -08:00
1 parent 021b790f5c
commit c093bc4cb2
2 files changed
+144 -1

No files matched your search

@@ -5,7 +5,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=9d272c9fe2437531b5bbecf4fcc82e24"
inherit pypi python_setuptools_build_meta ptest-python-pytest
SRC_URI += "file://0001-Async-test-improvements-for-Python-3.14-48.patch"
SRC_URI += "file://0001-Async-test-improvements-for-Python-3.14-48.patch \
file://0002-Removed-net-access-requirement-in-client-unit-tests.patch \
"
SRC_URI[sha256sum] = "7939234e7aa067c534abdab3a9ed933ec9ce4691b0713c78acb195560aa52ae4"
RDEPENDS:${PN} += " \