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 — bpo-10572: Move tkinter tests to /test by idomic · Pull Request #18727 · python/cpython Conversation
| ||||||||||||||||||||||||||||||||||||
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
d659ed4 to
ffa202d
Compare
| support.requires('gui') | ||
|
|
||
| from tkinter.test import runtktests | ||
| from Lib.test.tkinter_test import runtktests |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This can’t be correct. Lib is not an importable Python package, it is a path containing modules and packages.
The new import should be from test.tkinter_test import runtktests.
(Or for what it’s worth, this nearly empty file could be removed, if the new package for tkinter tests would be named in a way that’s automatically found by unittest discover and runtests)
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.
Done, I think it might be better to separate the changes no?
Like the first stage - migrate the module. Second stage - remove redundant legacy files.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I have made the requested changes; please review again |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for making the requested changes! @berkerpeksag: please review the changes made to this pull request. |
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 a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I don't think that the actual tkinter tests should be installed unless tkinter is installed. So I don't think that tkinter tests should be changed. I certainly would not do so unless Serhiy wants the move and approves of how it is done.
EDIT: So I am actually suggesting that this be closed and that you pick something else to move that is always installed.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -5,7 +5,7 @@ | |||
| # Skip test if tk cannot be initialized. | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Lib/__init__.py should be deleted.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| from test.tkinter_test import runtktests | ||
|
|
||
| def test_main(): | ||
| support.run_unittest( |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
After moving the tests, files like this (just contains an import and a wrapper to interface runtests with test_ttk) end up being a slightly confusing, mostly unneeded layer.
As long as many files are moved and history is broken, why not also clean up this tangle by merging the compat layer into the real test files?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This was implemented in #94070. |
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.