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-98393: Update test_os for bytes-like types by vstinner · Pull Request #98487 · python/cpython Conversation
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if not isinstance(name, (str, bytes)): | ||
| with self.assertRaises(TypeError): | ||
| func(name, *func_args) | ||
| # don't test TypeError here |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Other types are already well tested in other test methods of test_os.
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.
Then why these filenames are occurred here at first place? bytearray and memoryview should not be added in self.bytes_filenames.
BTW, does checking condition sys.platform == "win32" above still have sense?
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.
I removed bytearray and memoryviews from self.bytes_filenames (and self.filenames).
I removed the code specific to Windows: let's see how CIs like my updated change :-)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@serhiy-storchaka: Would you mind to review the updated PR? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Address Serhiy Storchaka's review.
|
"Tests / Check if generated files are up to date (pull_request)" failed for an unrelated reason: I rebased my PR to see if it helps. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for the review @serhiy-storchaka. |
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.