Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

':' mapped to '_' when using str.encode() in Python 3.9b5. #10

Closed
byllyfish opened this issue Aug 11, 2020 · 1 comment
Closed

':' mapped to '_' when using str.encode() in Python 3.9b5. #10

byllyfish opened this issue Aug 11, 2020 · 1 comment
Assignees

Comments

@byllyfish
Copy link
Owner

From Issue #9

======================================================================
ERROR: test_golden_json (test_golden.TestGolden)

Traceback (most recent call last):
File "/var/tmp/portage/dev-python/precis-i18n-1.0.1_p20190922/work/precis_i18n-1498def50914b8d4f670874cc282072790619399/test/test_golden.py", line 28, in test_golden_json
self.check_disallow(profile, input_, error)
File "/var/tmp/portage/dev-python/precis-i18n-1.0.1_p20190922/work/precis_i18n-1498def50914b8d4f670874cc282072790619399/test/test_golden.py", line 50, in check_disallow
input_.encode(profile)
LookupError: unknown encoding: UsernameCaseMapped:ToLower

To fix this, get_profile will map ':' to '_'. This means that "UsernameCaseMapped_ToLower" will also work starting in next release.

@byllyfish byllyfish self-assigned this Aug 11, 2020
@byllyfish
Copy link
Owner Author

Fixed in release 1.0.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant