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-139322: Create test_os package by vstinner · Pull Request #139453 · python/cpython Conversation
|
|
@serhiy-storchaka: Here is a simpler approach which only creates |
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.
Were is test_windows?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Ooops, I forgot git add :-) Fixed. |
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. 👍
Win32ErrorTests may be removed if all its tests are duplicated in other places for all platforms.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| from .utils import create_file | ||
|
|
||
|
|
||
| class Win32ErrorTests(unittest.TestCase): |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Originally, these tests were for WindowsError. But now OSError is raised on all platforms. These tests are no longer Windows specific, and most likely are duplicated in other parts.
Please check that all these functions are already tested with non-existing file (and mkdir() with an existing file). Then they can be deleted.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Merged, thanks for the review.
Good catch! I created #139477 to remove |
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.