GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — gh-126332: Add tests for _pyrepl.utils by eendebakpt · Pull Request #129325 · python/cpython Conversation
|
|
|
||
| self.assertEqual(wlen('hello'), 5) | ||
| self.assertEqual(wlen('hello'+'\x1a'), 7) | ||
| self.assertEqual(wlen('hello'+'\0x1B'), 9) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This test is strange. Are you testing the nul byte and then the string x1B on purpose?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Good catch. I tried to create a special unicode character to hit one of the paths in wlen, but think I made a typo. I removed this test and added two others.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The Docs CI job fails, I'm not sure why. So I updated the branch to try to fix the issue. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @eendebakpt for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
(cherry picked from commit 0c4248f) Co-authored-by: Pieter Eendebak <[email protected]>
|
GH-130414 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.