Source: python-httpretty
Version: 0.9.5-7
Severity: serious
Tags: upstream ftbfs
Justification: fails to build from source
Dear Maintainer,
Now that python 3.9 is a supported version, the tests fail with:
======================================================================
ERROR: fakesock.socket#makefile should set the mode, bufsize and return its
mocked file descriptor
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/usr/lib/python3/dist-packages/mock/mock.py", line 1369, in patched
return func(*newargs, **newkeywargs)
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_httpretty/build/tests/unit/test_core.py",
line 256, in test_fakesock_socket_makefile
fd = socket.makefile(mode='rw', bufsize=512)
File
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_httpretty/build/httpretty/core.py",
line 438, in makefile
if t.isAlive():
AttributeError: 'Thread' object has no attribute 'isAlive'
This appears to be fixed upstream
(https://github.com/gabrielfalcao/HTTPretty/commit/259a9a4f7514096daa008d3bf14e4b782cafae72)
and an upstream update would fix this but I haven't checked if an update
would be disruptive to other packages yet.
Cheers,
mwh
-- System Information:
Debian Release: bullseye/sid
APT prefers focal-updates
APT policy: (500, 'focal-updates'), (500, 'focal-security'), (500, 'focal'),
(400, 'focal-proposed'), (100, 'focal-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.4.0-51-generic (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled