Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix commented out part of test_body_encode in test_email #149916

Description

@serhiy-storchaka

It was commented out in bef9d21. The test was broken because:

  • Charset.body_encode() now only takes one argument (see 9604e66).
  • The argument of Charset.body_encode() must be Unicode string for encoding taking place. The test used a 8-bit string in Python 2.

So the test can only be restored partially, but it was the only test with different input and output codecs, so it is better to enable it.

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixes3.15pre-release feature fixes, bugs and security fixes3.16new features, bugs and security fixestestsTests in the Lib/test dirtopic-email

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions