R. David Murray added the comment:

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 :(.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19772>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to