~barry/mailman/lp1423756

« back to all changes in this revision

Viewing changes to src/mailman/handlers/tests/test_cook_headers.py

  • Committer: Barry Warsaw
  • Date: 2015-01-05 01:20:33 UTC
  • mfrom: (7264.4.66 py3)
  • Revision ID: barry@list.org-20150105012033-zdrw9c2odhpf22fz
Merge the Python 3 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""Test the cook_headers handler."""
19
19
 
20
 
from __future__ import absolute_import, print_function, unicode_literals
21
 
 
22
 
__metaclass__ = type
23
20
__all__ = [
24
21
    'TestCookHeaders',
25
22
    ]
50
47
        for msg in messages:
51
48
            try:
52
49
                cook_headers.process(self._mlist, msg, {})
53
 
            except AttributeError as e:
 
50
            except AttributeError as error:
54
51
                # LP: #1130696 would raise an AttributeError on .sender
55
 
                self.fail(e)
 
52
                self.fail(error)