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-104635: Add a test case for variables that have a dependency.#106583

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
corona10 merged 3 commits intopython:mainfromcorona10:gh-104635-test-case
Jul 11, 2023

Conversation

@corona10
Copy link
Member

@corona10corona10 commentedJul 10, 2023
edited by bedevere-bot
Loading

@corona10corona10 requested a review fromcarljmJuly 10, 2023 05:09
@bedevere-botbedevere-bot added the testsTests in the Lib/test dir labelJul 10, 2023
@corona10corona10 added skip news and removed testsTests in the Lib/test dir awaiting core review labelsJul 10, 2023
@corona10
Copy link
MemberAuthor

I found this case while I worked for#106571 (comment), It will be helpful to the future researcher.

returna
self.assertEqual(f("x","y","z"),"y")

deftest_variable_dependent(self):
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 explain the purpose of the test in a comment? From the code, it's nonibvious to me how it can be miscompiled.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Can you please explain the purpose of the test in a comment? From the code, it's nonibvious to me how it can be miscompiled.

No, it doesn't miscompile at this optimization moment.
But I was quite surprised with the CI never failed with the wrong compile for the#106571 (comment).
So it could be good to be added. I thought that miscompile case should be caught at the CI level.

Copy link
Member

Choose a reason for hiding this comment

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

I don't say that the code is miscompiled. I propose adding a comment to explain that the test checks that this specific code is not miscompiled, but please explain why it could be miscompiled.

corona10 reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Done!

@corona10corona10 requested a review fromvstinnerJuly 10, 2023 11:30
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. I just suggest a minor phrasing change.

Co-authored-by: Carl Meyer <carl@oddbird.net>
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

@corona10corona10 merged commit115df84 intopython:mainJul 11, 2023
@corona10corona10 deleted the gh-104635-test-case branchJuly 11, 2023 01:15
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@carljmcarljmcarljm approved these changes

@vstinnervstinnervstinner approved these changes

@Fidget-SpinnerFidget-SpinnerAwaiting requested review from Fidget-Spinner

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@corona10@carljm@vstinner@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp