Logo
Explore Help
Sign In
Narcissus/shredos.x86_64
2
0
Fork 1
You've already forked shredos.x86_64
mirror of https://github.com/PartialVolume/shredos.x86_64.git synced 2026-02-22 10:32:10 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
fa33eb3199e2bf437cec8fcff04487f0d0f04daf
shredos.x86_64/support/testing/tests/package/sample_python_twisted.py

10 lines
172 B
Python
Raw Normal View History

support/testing: use TestPythonPackageBase for python-twisted Move the test script to be run on the target from inline in the test case to a separate file. Get the base defconfig fragment from the immediate parent class and not directly from TestPythonBase because it is the correct way of doing this. This way the base class TestPythonTwisted could even be placed in a separate file. Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Asaf Kahlon <asafka7@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-11-10 00:16:06 -02:00
from twisted.internet import protocol, reactor, endpoints
class F(protocol.Factory):
pass
endpoints.serverFromString(reactor, "tcp:1234").listen(F())
reactor.run()
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 163ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API