-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix pytest 9 error #3152
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
Fix pytest 9 error #3152
Conversation
|
|
||
|
|
||
| @pytest.fixture(scope="function") | ||
| @pytest_asyncio.fixture(scope="function") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not something you introduced, but in the sync side this fixture has a session scope.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is intentional, see the comment below:
# Unfortunately the asyncio client needs to be rebuilt every
# test execution due to how pytest-asyncio manages
# event loops (one per test!)|
The backport to To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-8.19 8.19
# Navigate to the new working tree
cd .worktrees/backport-8.19
# Create a new branch
git switch --create backport-3152-to-8.19
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 3a15e1bdc523f0a385398c6c9678fcc30386926e
# Push it to GitHub
git push --set-upstream origin backport-3152-to-8.19
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-8.19Then, create a pull request where the |
|
The backport to To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-9.1 9.1
# Navigate to the new working tree
cd .worktrees/backport-9.1
# Create a new branch
git switch --create backport-3152-to-9.1
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 3a15e1bdc523f0a385398c6c9678fcc30386926e
# Push it to GitHub
git push --set-upstream origin backport-3152-to-9.1
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-9.1Then, create a pull request where the |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
* Fix pytest 9 error (#3152) * Fix pytest 9 error * Use explicit pytest_asyncio fixture * Revert "Fix pytest 9 error" This reverts commit 019e747. * Fix lint * Fix lint better * Add back type ignore (cherry picked from commit 3a15e1b) # Conflicts: # test_elasticsearch/test_async/test_server/conftest.py * Add missing import
* Fix pytest 9 error (#3152) * Fix pytest 9 error * Use explicit pytest_asyncio fixture * Revert "Fix pytest 9 error" This reverts commit 019e747. * Fix lint * Fix lint better * Add back type ignore (cherry picked from commit 3a15e1b) # Conflicts: # test_elasticsearch/test_async/test_server/conftest.py * Add missing import
* Fix pytest 9 error * Use explicit pytest_asyncio fixture * Revert "Fix pytest 9 error" This reverts commit 019e747. * Fix lint * Fix lint better * Add back type ignore (cherry picked from commit 3a15e1b) Co-authored-by: Quentin Pradet <[email protected]>
No description provided.