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-89392: Remove support of test_main() in libregrtest by serhiy-storchaka · Pull Request #108876 · python/cpython Conversation
|
| else: | ||
| def test_func(): | ||
| return run_unittest(test_mod) | ||
| assert not hasattr(test_mod, "test_main") |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Can you please replace the assert with a regular exception. Like:
if hasattr(test_mod, "test_main"): raise Exception("Module {result.test_name} defines test_main() which is no longer supported by regrtest")
Maybe add a comment linking to https://github.com/python/cpython/issues/89392.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
There's a new commit after the PR has been approved. @vstinner: please review the changes made to this pull request. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ythonGH-108876). (cherry picked from commit 04a0830) Co-authored-by: Serhiy Storchaka <[email protected]>
|
GH-108897 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ythonGH-108876). (cherry picked from commit 04a0830) Co-authored-by: Serhiy Storchaka <[email protected]>
|
GH-108898 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
) (#108897) [3.12] gh-89392: Remove support of test_main() in libregrtest (GH-108876). (cherry picked from commit 04a0830) Co-authored-by: Alex Waygood <[email protected]>
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.