Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-89392: Remove support of test_main() in libregrtest#108876

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchakaserhiy-storchaka commentedSep 4, 2023
edited by bedevere-bot
Loading

Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM, but I would prefer a better error message if a test module has a test_main() function.

else:
deftest_func():
returnrun_unittest(test_mod)
assertnothasattr(test_mod,"test_main")
Copy link
Member

Choose a reason for 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:

ifhasattr(test_mod,"test_main"):raiseException("Module {result.test_name} defines test_main() which is no longer supported by regrtest")

Maybe add a comment linking tohttps://github.com/python/cpython/issues/89392.

@serhiy-storchakaserhiy-storchaka merged commit04a0830 intopython:mainSep 5, 2023
@miss-islington
Copy link
Contributor

Thanks@serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

@serhiy-storchakaserhiy-storchaka deleted the regretest-no-test_main branchSeptember 5, 2023 05:36
@bedevere-bot
Copy link

There's a new commit after the PR has been approved.

@vstinner: please review the changes made to this pull request.

@miss-islington
Copy link
Contributor

Sorry,@serhiy-storchaka, I could not cleanly backport this to3.12 due to a conflict.
Please backport usingcherry_picker on command line.
cherry_picker 04a0830b00879efe057e3dfe75e9aa9c0caf1a26 3.12

@miss-islington
Copy link
Contributor

Sorry,@serhiy-storchaka, I could not cleanly backport this to3.11 due to a conflict.
Please backport usingcherry_picker on command line.
cherry_picker 04a0830b00879efe057e3dfe75e9aa9c0caf1a26 3.11

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull requestSep 5, 2023
…ythonGH-108876).(cherry picked from commit04a0830)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-bot
Copy link

GH-108897 is a backport of this pull request to the3.12 branch.

@bedevere-botbedevere-bot removed the needs backport to 3.12only security fixes labelSep 5, 2023
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull requestSep 5, 2023
…ythonGH-108876).(cherry picked from commit04a0830)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-bot
Copy link

GH-108898 is a backport of this pull request to the3.11 branch.

@bedevere-botbedevere-bot removed the needs backport to 3.11only security fixes labelSep 5, 2023
serhiy-storchaka added a commit that referenced this pull requestSep 5, 2023
Yhg1s pushed a commit that referenced this pull requestSep 5, 2023
) (#108897)[3.12]gh-89392: Remove support of test_main() in libregrtest (GH-108876).(cherry picked from commit04a0830)Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@vstinnervstinnerAwaiting requested review from vstinner

Assignees

No one assigned

Labels

awaiting core reviewtestsTests in the Lib/test dir

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@serhiy-storchaka@miss-islington@bedevere-bot@vstinner

[8]ページ先頭

©2009-2025 Movatter.jp