This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients barry, r.david.murray, vajrasky
Date 2014-02-07.19:27:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391801270.22.0.355416010845.issue19772@psf.upfronthosting.co.za>
In-reply-to
Content
While the copy solution seems reasonable, unfortunately it looks like the solution isn't that simple.

Your test method didn't start with 'test_', so it didn't get run.  Your fix doesn't fix the problem, since other parts of the code are holding on to a pointer to the original message object.  But even if I change your fix to only make a local copy and use it to get the transformed payload, that fix breaks other tests, since the *headers* aren't changed in the output, even if the payload is.  This is because of the odd way the generator accumulates its output, and I unfortunately don't have time to remember how it all works in order to craft a fix before the 3.4 alpha :(.
History
Date User Action Args
2014-02-07 19:27:50r.david.murraysetrecipients: + r.david.murray, barry, vajrasky
2014-02-07 19:27:50r.david.murraysetmessageid: <1391801270.22.0.355416010845.issue19772@psf.upfronthosting.co.za>
2014-02-07 19:27:50r.david.murraylinkissue19772 messages
2014-02-07 19:27:50r.david.murraycreate