gh-98393: Update test_os for bytes-like types#98487
gh-98393: Update test_os for bytes-like types#98487vstinner merged 1 commit intopython:mainfrom vstinner:test_os
Conversation
Lib/test/test_os.py
Outdated
| 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.
Other types are already well tested in other test methods of test_os.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 :-)
|
@serhiy-storchaka: Would you mind to review the updated PR? |
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. |
|
Thanks for the review @serhiy-storchaka. |
Address Serhiy Storchaka's review.