Package: src:lirc
Version: 0.10.1-6
Severity: serious
Tags: sid bullseye
User: debian-pyt...@lists.debian.org
Usertags: python3.8

lirc ftbfs with python 3.8:

[...]
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
tools/lirc-lsplugins -U plugins/.libs -s | tee summary
Warning: cannot open /etc/lirc/lirc_options.conf
Plugins: 40
Drivers: 51
Errors: 0
grep -q "Errors: 0" summary && rm summary
case $(dpkg-architecture -qDEB_HOST_GNU_SYSTEM) in \
    kfreebsd* | gnu) \
        :  ;; \
    *)  \
        cd python-pkg/tests; \
        python3 -m unittest discover && rm backend.log \
        ;; \
esac
.../<<PKGBUILDDIR>>/python-pkg/lirc/async_client.py:66: DeprecationWarning: The
loop argument is deprecated since Python 3.8, and scheduled for removal in
Python 3.10.
  self._queue = asyncio.Queue(loop=self._loop)
/usr/lib/python3.8/asyncio/queues.py:48: DeprecationWarning: The loop argument
is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
  self._finished = locks.Event(loop=loop)
...E
======================================================================
ERROR: testReceiveTimeout (test_client.ReceiveTests)
Generate a TimeoutException if there is no data
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/python-pkg/tests/test_client.py", line 131, in
testReceiveTimeout
    self.assertRaises(lirc.TimeoutException, conn.readline, 0.1)
  File "/usr/lib/python3.8/unittest/case.py", line 816, in assertRaises
    return context.handle('assertRaises', args, kwargs)
  File "/usr/lib/python3.8/unittest/case.py", line 202, in handle
    callable_obj(*args, **kwargs)
  File "/<<PKGBUILDDIR>>/python-pkg/lirc/client.py", line 281, in readline
    code = self._connection.readline(timeout)
  File "/<<PKGBUILDDIR>>/python-pkg/lirc/client.py", line 222, in readline
    start = time.clock()
AttributeError: module 'time' has no attribute 'clock'

----------------------------------------------------------------------
Ran 7 tests in 1.136s

FAILED (errors=1)

Reply via email to