Commit fe7e848
authored
fix(profiler): Stop nulling buffer on teardown (#6075)
There's still the occasional race condition in the GEvent tests that may
be related to fast "start/stop" cycles, and the `teardown` functions
were not updated as part of
#5622 (comment)
These changes remove `self.buffer = None` from `teardown()` in both
`ThreadContinuousScheduler` and `GeventContinuousScheduler` in favour of
using a local variable to assign `self.buffer` to before setting the
local variable to `None`
Fixes PY-2140
Fixes #56731 parent 999667f commit fe7e848
1 file changed
+0
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
510 | | - | |
511 | 509 | | |
512 | 510 | | |
513 | 511 | | |
| |||
580 | 578 | | |
581 | 579 | | |
582 | 580 | | |
583 | | - | |
584 | | - | |
585 | 581 | | |
586 | 582 | | |
587 | 583 | | |
| |||
0 commit comments