Source: pytest-localserver
Version: 0.3.6-1
Severity: serious
Tags: buster sid

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/pytest-localserver.html

...
I: pybuild base:184: python3.6 -m pytest -v -x
============================= test session starts ==============================
platform linux -- Python 3.6.2rc1, pytest-3.0.6, py-1.4.34, pluggy-0.4.0 -- 
/usr/bin/python3.6
cachedir: .cache
rootdir: /build/1st/pytest-localserver-0.3.6, inifile: 
plugins: localserver-0.3.6
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 PASSED
tests/test_smtp.py::test_server_is_killed PASSED
tests/test_smtp.py::test_server_is_deleted PASSED
tests/test_smtp.py::test_smtpserver_has_empty_outbox_at_startup PASSED
tests/test_smtp.py::test_send_email FAILED

=================================== FAILURES ===================================
_______________________________ test_send_email ________________________________

smtpserver = <[TypeError("not all arguments converted during string 
formatting") raised in repr()] Server object at 0x7fb46cac3e10>

    def test_send_email(smtpserver):
        # send one e-mail
        send_plain_email(
            'al...@example.com', 'webmas...@example.com',
            'Your e-mail is getting there', 'Seems like this test actually 
works!',
>           smtpserver.addr)

tests/test_smtp.py:63: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_smtp.py:27: in send_plain_email
    server.sendmail(from_, to, msg.as_string())
/usr/lib/python3.6/smtplib.py:882: in sendmail
    (code, resp) = self.data(msg)
/usr/lib/python3.6/smtplib.py:569: in data
    (code, msg) = self.getreply()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <smtplib.SMTP object at 0x7fb46cac39e8>

    def getreply(self):
        """Get a reply from the server.
    
            Returns a tuple consisting of:
    
              - server response code (e.g. '250', or such, if all goes well)
                Note: returns -1 if it can't read response code.
    
              - server response string corresponding to response code (multiline
                responses are converted to a single, multiline string).
    
            Raises SMTPServerDisconnected if end-of-file is reached.
            """
        resp = []
        if self.file is None:
            self.file = self.sock.makefile('rb')
        while 1:
            try:
                line = self.file.readline(_MAXLINE + 1)
            except OSError as e:
                self.close()
                raise SMTPServerDisconnected("Connection unexpectedly closed: "
                                             + str(e))
            if not line:
                self.close()
>               raise SMTPServerDisconnected("Connection unexpectedly closed")
E               smtplib.SMTPServerDisconnected: Connection unexpectedly closed

/usr/lib/python3.6/smtplib.py:394: SMTPServerDisconnected
----------------------------- Captured stdout call -----------------------------
error: uncaptured python exception, closing channel <smtpd.SMTPChannel 
connected ('::1', 53478, 0, 0) at 0x7fb46cac3a20> (<class 
'TypeError'>:process_message() got an unexpected keyword argument 
'mail_options' [/usr/lib/python3.6/asyncore.py|read|83] 
[/usr/lib/python3.6/asyncore.py|handle_read_event|423] 
[/usr/lib/python3.6/asynchat.py|handle_read|171] 
[/usr/lib/python3.6/smtpd.py|found_terminator|386])
----------------------------- Captured stderr call -----------------------------
send: 'ehlo [127.0.1.1]\r\n'
reply: b'250-profitbricks-build5-amd64\r\n'
reply: b'250-SIZE 33554432\r\n'
reply: b'250-8BITMIME\r\n'
reply: b'250 HELP\r\n'
reply: retcode (250); Msg: b'profitbricks-build5-amd64\nSIZE 
33554432\n8BITMIME\nHELP'
send: 'mail FROM:<webmas...@example.com> size=227\r\n'
reply: b'250 OK\r\n'
reply: retcode (250); Msg: b'OK'
send: 'rcpt TO:<al...@example.com>\r\n'
reply: b'250 OK\r\n'
reply: retcode (250); Msg: b'OK'
send: 'data\r\n'
reply: b'354 End data with <CR><LF>.<CR><LF>\r\n'
reply: retcode (354); Msg: b'End data with <CR><LF>.<CR><LF>'
data: (354, b'End data with <CR><LF>.<CR><LF>')
send: b'Content-Type: text/plain; charset="us-ascii"\r\nMIME-Version: 
1.0\r\nContent-Transfer-Encoding: 7bit\r\nSubject: Your e-mail is getting 
there\r\nFrom: webmas...@example.com\r\nTo: al...@example.com\r\n\r\nSeems like 
this test actually works!\r\n.\r\n'
!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!
===================== 1 failed, 14 passed in 5.97 seconds ======================
E: pybuild pybuild:283: test: plugin custom failed with: exit code=2: python3.6 
-m pytest -v -x
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 3.6 3.5 
returned exit code 13
debian/rules:13: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 25

Reply via email to