Files
rpi-buildroot/support/testing/tests/package/sample_python_twisted.py
Romain Naour 1b96809304 package/python-twisted: add missing python3-xml dependency
Currently the test TestPythonTwisted is not broken [1] since it doesn't
test all modules provided by python-twisted package.

But TestPythonTwisted should have failed due to missing xml in
twisted/web module.

Due to this, TestPythonPy3MagicWormhole runtime test is currently
broken.

Add missing python3-xml dependency and update
sample_python_twisted.py to load twisted/web that uses xml
module.

Fixes (partially due to missing python setuptool in
python-magic-wormhole-mailbox-server):
https://gitlab.com/buildroot.org/buildroot/-/jobs/8199992646

Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Julien Olivain <ju.o@free.fr>
2024-11-01 22:31:40 +01:00

12 lines
279 B
Python

from twisted.internet import protocol, reactor, endpoints
from twisted.web.client import readBody # noqa: F401
from twisted.web import xmlrpc, server # noqa: F401
class F(protocol.Factory):
pass
endpoints.serverFromString(reactor, "tcp:1234").listen(F())
reactor.run()