Source: pytest-localserver Version: 0.3.4-1 Severity: serious Justification: fails to build from source
Pytest-localserver FTBFS because there are problems with Python 3.5, it builds against python3-all and the test suite crashes: <buildlog> I: pybuild base:170: python3.5 -m pytest -v -x ============================= test session starts ============================== platform linux -- Python 3.5.0 -- py-1.4.30 -- pytest-2.7.3 -- /usr/bin/python3.5 rootdir: /«PKGBUILDDIR», inifile: plugins: localserver collecting ... collected 15 items tests/test_http.py::test_httpserver_funcarg PASSED tests/test_http.py::test_server_does_not_serve_file_at_startup PASSED tests/test_http.py::test_some_content_retrieval PASSED tests/test_http.py::test_GET_request PASSED tests/test_http.py::test_HEAD_request PASSED tests/test_https.py::test_httpsserver_funcarg PASSED tests/test_https.py::test_server_does_not_serve_file_at_startup PASSED tests/test_https.py::test_some_content_retrieval PASSED tests/test_https.py::test_GET_request PASSED tests/test_https.py::test_HEAD_request PASSED tests/test_smtp.py::test_smtpserver_funcarg ERROR ==================================== ERRORS ==================================== __________________ ERROR at setup of test_smtpserver_funcarg ___________________ request = <SubRequest 'smtpserver' for <Function 'test_smtpserver_funcarg'>> def pytest_funcarg__smtpserver(request): # define funcargs here again in order to run tests without having to # install the plugin anew every single time > return plugin.pytest_funcarg__smtpserver(request) tests/test_smtp.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pytest_localserver/plugin.py:76: in pytest_funcarg__smtpserver server = smtp.Server() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <smtp.Server localhost:0>, host = 'localhost', port = 0 def __init__(self, host='localhost', port=0): smtpd.SMTPServer.__init__(self, (host, port), None) if self._localaddr[1] == 0: > self.addr = self.getsockname() E AttributeError: 'Server' object has no attribute 'getsockname' pytest_localserver/smtp.py:37: AttributeError </buildlog> Appears to be that pytest_localserver/smtp.py is not fit for Python 3.5. DS -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)