[3.6] bpo-32663 Make SMTPUTF8SimTests run (GH-5314) by miss-islington · Pull Request #8470 · python/cpython

Enable and fix SMTPUTF8SimTests in test_smtplib.

The tests for SMTPUTF8SimTests in test_smtplib.py were not actually
being run because test_smtplib was still using the 'test_main' pattern,
and the class was never added to test_main.

Additionally, one of the tests needed to be moved to the non-UTF8 server
class because it relies on the server not being UTF-8 compatible (and it
had a bug in in).
(cherry picked from commit 48ed88a)

Co-authored-by: chason chason@gmail.com

https://bugs.python.org/issue32663