Closed stevenbuccini closed 7 years ago
Unsure of why these tests are failing on Python3 -- looks to be a broader issue than just my tests.
cc: @amcgregor, just want to bring this to your attention.
Thanks again!
Do you plan on releasing a bumped version on PyPi? Would make pulling this commit into my project a lot easier. Thanks!
Aye; I'll try to tackle that (and fixing these tests…) for a release this week-end.
Just curious if you had an update on this! Thanks!
Yeah… spent a ludicrous amount of time this week-end wrangling with the tests. Things like the DNS package used previously is not Python 3 compatible, nor was the mock SMTP server. Migration to Pytest (from Nose) is also part of this. T'was a bit bigger of a job than two afternoons on the week-end could account for. I'll continue updating/fixing them as the week progresses and will re-try for a release next week-end.
No worries, didn't realize it would be such a big deal! Thanks so much for slogging through it for a minor change. I do appreciate it.
It never hurts to help. 😆
Tests pass on all supported platforms now.
There's an interesting oddity between Python 2 and 3, where the encoded filename is quoted in Python 2, but not quoted in 3. I've verified that unquoted is acceptable according to the RFC, so no damage beyond extra conditionals in the tests. I've shoved the major test update (ripping out the DNS bits, etc.) into a branch and will roll a release including the changes/fixes so far on Saturday.
Could you do me a huge favour and double-check that the current develop
branch operates according to your expectations?
Thanks!
@stevenbuccini https://github.com/marrow/mailer/releases/tag/4.0.2 :)
@amcgregor Just seeing this now! Thank you so very much. I really appreciate your dedication to the issue; I know it was a major task getting the tests in order for such a small fix.
RFC 2231 allows us to specify a language and a charset for filenames that include non-ASCII characters. Python's
email
module already includes some nifty functionality to handle this. This PR simply exposes that functionality to users of marrow/mailer.