-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 warnings and resource usage problems in asyncio unittests #2258
Merged
dvora-h
merged 13 commits into
redis:master
from
mainframeindustries:kristjan/unittest-warning-cleanup
Jul 26, 2022
Merged
Fix warnings and resource usage problems in asyncio unittests #2258
dvora-h
merged 13 commits into
redis:master
from
mainframeindustries:kristjan/unittest-warning-cleanup
Jul 26, 2022
Commits on Jul 25, 2022
-
Use pytest-asyncio in auto mode
Remove overly genereric `pytestmark=pytest.mark.asyncio` causing lots of warning noise
Configuration menu - View commit details
-
Copy full SHA for 3b01dbd - Browse repository at this point
Copy the full SHA 3b01dbdView commit details -
Use "Factories as Fixtures" test pattern for the
create_redis
fixturethis fixture is now async, avoiding teardown problems with missing event loops.
Configuration menu - View commit details
-
Copy full SHA for 451ac03 - Browse repository at this point
Copy the full SHA 451ac03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a1c0d7 - Browse repository at this point
Copy the full SHA 1a1c0d7View commit details -
Close connection, even if "username" was in kwargs
This fixes a resource usage warning in the async unittests.
Configuration menu - View commit details
-
Copy full SHA for 56bc4a1 - Browse repository at this point
Copy the full SHA 56bc4a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d26c91 - Browse repository at this point
Copy the full SHA 8d26c91View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea68f78 - Browse repository at this point
Copy the full SHA ea68f78View commit details -
Configuration menu - View commit details
-
Copy full SHA for c745185 - Browse repository at this point
Copy the full SHA c745185View commit details -
Close pubsub objects after use in unittest
Use a simple fixture where possible, otherwise manually call pubsub.close()
Configuration menu - View commit details
-
Copy full SHA for a69d73a - Browse repository at this point
Copy the full SHA a69d73aView commit details -
Configuration menu - View commit details
-
Copy full SHA for f2c100c - Browse repository at this point
Copy the full SHA f2c100cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d7ca47f - Browse repository at this point
Copy the full SHA d7ca47fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 011b76b - Browse repository at this point
Copy the full SHA 011b76bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b6a03c - Browse repository at this point
Copy the full SHA 7b6a03cView commit details -
Configuration menu - View commit details
-
Copy full SHA for f48c733 - Browse repository at this point
Copy the full SHA f48c733View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.