When I run unittest for my code and facing an Assertion error I got below AttributeError instead of clear information about AssertionError:
File "/XXXXXXX/py3/lib/python3.10/site-packages/testtools/testresult/real.py", line 766, in _make_content_type
msg = email.message.EmailMessage()
AttributeError: module 'email' has no attribute 'message'
I managed to solve this problem by updating real.py. I "import email.message" instead of just "import email". Could you please check/correct source code?
When I run unittest for my code and facing an Assertion error I got below AttributeError instead of clear information about AssertionError:
File "/XXXXXXX/py3/lib/python3.10/site-packages/testtools/testresult/real.py", line 766, in _make_content_type msg = email.message.EmailMessage() AttributeError: module 'email' has no attribute 'message'
I managed to solve this problem by updating real.py. I "import email.message" instead of just "import email". Could you please check/correct source code?