Visitar URL original
Reorganize `test_patma.py` by brandtbucher · Pull Request #26661 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20221223191114/https://github.com/python/cpython/pull/26661
Skip to content
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

Reorganize test_patma.py #26661

Merged
merged 1 commit into from Jun 18, 2021
Merged

Conversation

brandtbucher
Copy link
Member

@brandtbucher brandtbucher commented Jun 10, 2021

The diff is a bit noisy, but this doesn't actually change much. These tests just needed a bit more structure.

Mainly, this moves all of the tests checking for errors into their own classes and gives them meaningful names. It also re-numbers the remaining tests, removes some unused imports, and refactors the perf script at the bottom.

@brandtbucher
Copy link
Member Author

brandtbucher commented Jun 10, 2021

The x86 Windows failure looks unrelated:

======================================================================
FAIL: test_sendfile_close_peer_in_the_middle_of_receiving (test.test_asyncio.test_sendfile.ProactorEventLoopTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\a\cpython\cpython\lib\test\test_asyncio\test_sendfile.py", line 457, in test_sendfile_close_peer_in_the_middle_of_receiving
    with self.assertRaises(ConnectionError):
AssertionError: ConnectionError not raised

----------------------------------------------------------------------

@brandtbucher brandtbucher merged commit c106cf3 into python:main Jun 18, 2021
11 of 12 checks passed
@miss-islington
Copy link
Contributor

miss-islington commented Jun 18, 2021

Thanks @brandtbucher for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 18, 2021
(cherry picked from commit c106cf3)

Co-authored-by: Brandt Bucher <brandt@python.org>
@bedevere-bot
Copy link

bedevere-bot commented Jun 18, 2021

GH-26787 is a backport of this pull request to the 3.10 branch.

miss-islington added a commit that referenced this pull request Jun 18, 2021
(cherry picked from commit c106cf3)


Co-authored-by: Brandt Bucher <brandt@python.org>

Automerge-Triggered-By: GH:brandtbucher
jdevries3133 pushed a commit to jdevries3133/cpython that referenced this pull request Jun 19, 2021
@brandtbucher brandtbucher deleted the reorganize-test-patma branch Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip issue skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants