Skip to content

gh-106197: Deduplicate tests in test_buffer #106198

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Jun 28, 2023

Copy link
Contributor

@barneygale barneygale left a comment

Choose a reason for hiding this comment

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

One key difference between the tests is the order of inheritance, e.g. class B(A, bytearray): vs class B(bytearray, A):, and likewise for the C class. Is it worth mentioning this in a comment at the beginning of test_multiple_inheritance_buffer_last_raising(), so that future readers will spot the difference quickly?

@JelleZijlstra JelleZijlstra added the needs backport to 3.12 only security fixes label Jun 28, 2023
Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

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

Thanks, glad the test passed

@JelleZijlstra JelleZijlstra merged commit c283a0c into python:main Jun 28, 2023
@miss-islington
Copy link
Contributor

Thanks @sobolevn for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-106206 is a backport of this pull request to the 3.12 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.12 only security fixes label Jun 28, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 28, 2023
(cherry picked from commit c283a0c)

Co-authored-by: Nikita Sobolev <[email protected]>
JelleZijlstra pushed a commit that referenced this pull request Jun 28, 2023
…6206)

gh-106197: Deduplicate tests in `test_buffer` (GH-106198)
(cherry picked from commit c283a0c)

Co-authored-by: Nikita Sobolev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants