| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
This looks good, thank you!
Sorry, something went wrong.
|
|
||
| def test_unicode_error_str_gh_123378(self): | ||
| for formatter, start, end, obj in product( | ||
| (str, repr), |
There was a problem hiding this comment.
Testing repr() if we already test str() sounds redundant to me. Is it really worth it?
Sorry, something went wrong.
There was a problem hiding this comment.
No you're right. I'll remove it.
Sorry, something went wrong.
| for klass in klasses: | ||
| self.assertEqual(str(klass.__new__(klass)), "") | ||
|
|
||
| def test_unicode_error_str_gh_123378(self): |
There was a problem hiding this comment.
The purpose of the test is unclear to me, it just calls str(). Please add a comment to explain that you check that str() doesn't crash with a reference to the issue.
Sorry, something went wrong.
| (str, repr), | ||
| range(-5, 5), | ||
| range(-5, 5), | ||
| ('', 'a', '123', '1234', '12345', 'abc123'), |
There was a problem hiding this comment.
| ('', 'a', '123', '1234', '12345', 'abc123'), | |
| ('', 'a', 'abc', 'abcde', 'abcdef'), |
Sorry, something went wrong.
(cherry picked from commit ba14dfa) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
(cherry picked from commit ba14dfa) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
|
GH-125098 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
|
GH-125099 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
cc @encukou @serhiy-storchaka @vstinner