[Bug 1272381] Re: test failures with python 3.4
Launchpad Bug Tracker
1272381 at bugs.launchpad.net
Thu Feb 6 18:40:09 UTC 2014
This bug was fixed in the package unattended-upgrades - 0.82
---------------
unattended-upgrades (0.82) unstable; urgency=low
[ Brian Murray ]
* unattended-upgrade: specify charset when setting email payload for
python3.4 (LP: #1272381)
* change logging.warn calls to logging.warning
* test/test_email.py: use with to open email in test_mail_quoted_printable
-- Michael Vogt <mvo at debian.org> Thu, 06 Feb 2014 08:54:25 +0100
** Changed in: unattended-upgrades (Ubuntu)
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to unattended-upgrades in Ubuntu.
https://bugs.launchpad.net/bugs/1272381
Title:
test failures with python 3.4
Status in “unattended-upgrades” package in Ubuntu:
Fix Released
Bug description:
With python3.4 as the default, unattended-upgrades has several test
failures:
http://people.canonical.com/~pitti/tmp/autopkgtest-py34/fail/py34
-unattended-upgrades/results/
======================================================================
ERROR: test_mail_quoted_printable (__main__.SendmailAndMailxTestCase)
Regression test for debian bug #700178
----------------------------------------------------------------------
Traceback (most recent call last):
File "./test_mail.py", line 151, in test_mail_quoted_printable
send_summary_mail(*self._return_mock_data())
File "/tmp/adt-run.KYI3Ji/dsc0-build/unattended-upgrades-0.81/test/unattended_upgrade.py", line 740, in send_summary_mail
ret = _send_mail_using_sendmail(to_email, subject, body)
File "/tmp/adt-run.KYI3Ji/dsc0-build/unattended-upgrades-0.81/test/unattended_upgrade.py", line 674, in _send_mail_using_sendmail
msg.set_payload(body)
File "/usr/lib/python3.4/email/message.py", line 311, in set_payload
" payload") from None
TypeError: charset argument must be specified when non-ASCII characters are used in the payload
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1272381/+subscriptions
More information about the foundations-bugs
mailing list