-
-
Notifications
You must be signed in to change notification settings - Fork 341
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
Avoid refcycles in run exc #3120
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3120 +/- ##
==========================================
- Coverage 99.62% 99.44% -0.18%
==========================================
Files 122 122
Lines 18340 18346 +6
Branches 3281 3283 +2
==========================================
- Hits 18271 18245 -26
- Misses 47 78 +31
- Partials 22 23 +1
|
0d79042
to
12e8395
Compare
@@ -1706,6 +1706,7 @@ def close(self) -> None: | |||
self.asyncgens.close() | |||
if "after_run" in self.instruments: | |||
self.instruments.call("after_run") | |||
self.system_nursery: Nursery | None = None |
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.
Type hint here isn't necessary
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.
As long as this isn't the first time system_nursery
is set yes
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.
I think you accidentally left this instead of copying parts over as a test.
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.
Yep, sorry I pushed this in draft so I don't lose it
I'm currently trying to work out if this change makes it possible to test Line 2790 in 12e8395
|
No description provided.