Repository navigation
Fix brittle test - #14386
Fix brittle test#14386Moist-Cat wants to merge 2 commits into
Conversation
test_websocket_connection_cancellation relies on undefined behaviour from the gc. This causes random failures if calling del doesn't trigger __del__.
Insufficient dataNot enough activity yet to make a reliable assessment. This is an automated analysis by AgentScan |
[Low impact] This PR appears safe to merge. Reviews (3) · Last reviewed commit: "Add news fragment and updat CONTRIBUTORS..." · Reviewed by Greptile |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #14386 +/- ##
=======================================
Coverage 99.12% 99.12%
=======================================
Files 135 135
Lines 53661 53661
Branches 2737 2737
=======================================
+ Hits 53191 53193 +2
+ Misses 356 355 -1
+ Partials 114 113 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Merging this PR will improve performance by 8.4%3 warnings
Performance Changes
Tip Curious why performance improved? Comment Comparing Footnotes
|
|
Can you edit the PR description, so it folow the pull request template: https://github.com/aio-libs/aiohttp/blob/master/.github/PULL_REQUEST_TEMPLATE.md ? |
Done.
It was failing locally when I added a cyclic reference to the |
What do these changes do?
test_websocket_connection_cancellationrelies on undefined behaviour from the gc. This causes random failures if callingdeldoesn't trigger__del__.Are there changes in behavior for the user?
No.
Is it a substantial burden for the maintainers to support this?
No.
Related issue number
pr #13039
Checklist
CONTRIBUTORS.txtCHANGES/foldername it
<issue_or_pr_num>.<category>.rstfor example(
14006.contrib.rst)if you don't have an issue number, change it to the pull request
number after creating the PR
ensure category is one of the following:
bugfix: A bug fix for something the maintainers deemed animproper undesired behavior that got corrected to match
pre-agreed expectations.
feature: A new behavior, public APIs. That sort of stuff.deprecation: A declaration of future API removals and breakingchanges in behavior.
breaking: When something public is removed in a breaking way.Could be deprecated in an earlier release.
doc: Notable updates to the documentation structure or buildprocess.
packaging: Notes for downstreams about unobvious side effectsand tooling. Changes in the test invocation considerations and
runtime assumptions.
contrib: Stuff that affects the contributor experience. e.g.Running tests, building the docs, setting up the development
environment.
misc: Changes that are hard to assign to any of the abovecategories.
Make sure to use full sentences with correct case and punctuation.
Explain high-level effects affecting the end-users, for example:
Use the past tense or the present tense in a non-imperative mood,
referring to what's changed compared to the last released version
of this project.