8000 gh-128974: Fix `UnicodeError.__str__` when custom attributes have side-effects by picnixz · Pull Request #128975 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-128974: Fix UnicodeError.__str__ when custom attributes have side-effects #128975

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

Merged
merged 10 commits into from
Mar 1, 2025
Prev Previous commit
Next Next commit
update test case name
  • Loading branch information
picnixz committed Jan 19, 2025
commit 36e44f87d42006523e5717a112591d40689ef72f
2 changes: 1 addition & 1 deletion Lib/test/test_capi/test_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def _check_no_crash(self, exc):
# ensure that the __str__() method does not crash
_ = str(exc)

def test_unicode_encode_error_custom_str(self):
def test_unicode_error_custom_str(self):

class Evil(str):
def __str__(self):
Expand Down
Loading
0