Hi,
The FTBFS is reproducable `debuild -uc -us`.
Below is a screenshot of my repair attempt.
----8<------8<------8<------8<--
stappers@myhost:~/src/lirc
$ cd python-pkg/tests/
stappers@myhost:~/src/lirc/python-pkg/tests
$ python3 -m unittest discover && rm backend.log
E
======================================================================
ERROR: test_client (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_client
Traceback (most recent call last):
File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/lib/python3.10/unittest/loader.py", line 377, in
_get_module_from_name
__import__(name)
File "/home/stappers/src/lirc/python-pkg/tests/test_client.py", line 116
self.assertEqual(len(lines), 1000)
IndentationError: expected an indented block after 'with' statement on line 110
----------------------------------------------------------------------
Ran 1 test in 0.000s
FAILED (errors=1)
stappers@myhost:~/src/lirc/python-pkg/tests
$ vi +110 test_client.py
stappers@myhost:~/src/lirc/python-pkg/tests
$ python3 -m unittest discover && rm backend.log
...E...
======================================================================
ERROR: testReceive1AsyncLines (test_client.ReceiveTests)
Receive 1000 lines using the async interface.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/stappers/src/lirc/python-pkg/tests/test_client.py", line 113, in
testReceive1AsyncLines
run_until_complete(get_lines(conn, 1000))
NameError: name 'run_until_complete' is not defined
----------------------------------------------------------------------
Ran 7 tests in 0.748s
FAILED (errors=1)
stappers@myhost:~/src/lirc/python-pkg/tests
$ git diff test_client.py
diff --git a/python-pkg/tests/test_client.py b/python-pkg/tests/test_client.py
index d9af254..9428485 100644
--- a/python-pkg/tests/test_client.py
+++ b/python-pkg/tests/test_client.py
@@ -106,12 +106,12 @@ class ReceiveTests(unittest.TestCase):
stdout = subprocess.PIPE,
stderr = subprocess.STDOUT) as child:
_wait_for_socket()
- loop = asyncio.get_event_loop()
+# loop = asyncio.get_event_loop()
with LircdConnection('foo',
socket_path=_SOCKET,
lircrc_path='lircrc.conf') as conn:
- loop.run_until_complete(get_lines(conn, 1000))
- loop.close()
+ run_until_complete(get_lines(conn, 1000))
+# loop.close()
self.assertEqual(len(lines), 1000)
self.assertEqual(lines[0], 'foo-cmd')
stappers@myhost:~/src/lirc/python-pkg/tests
$
----8<------8<------8<------8<--
I hope this helps to fix the fails to build from source.
Groeten
Geert Stappers
--
Silence is hard to parse