test failures with python 3.4

Bug #1272381 reported by Martin Pitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unattended-upgrades (Ubuntu)
Fix Released
Medium
Brian Murray

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

Tags: python3.4

Related branches

Changed in unattended-upgrades (Ubuntu):
status: New → In Progress
assignee: nobody → Brian Murray (brian-murray)
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

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 <email address hidden> Thu, 06 Feb 2014 08:54:25 +0100

Changed in unattended-upgrades (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.