File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -79,13 +79,11 @@ def aioca_cleanup():
7979 # by cothread. If we don't do this we get a seg fault. This is not a problem
8080 # in production as we won't mix aioca and cothread, but we do mix them in
8181 # the tests so need to do this.
82- # In aioca 1.8 the name of the cleanup function changed.
83- if Version (__version__ ) >= Version ("1.8" ):
84- unregister_func = _catools ._Context ._teardown
85- else :
82+ # In aioca 1.8 the atexit function was changed to no longer cause this issue
83+ if Version (__version__ ) < Version ("1.8" ):
8684 unregister_func = _catools ._Context ._destroy_context
85+ atexit .unregister (unregister_func )
8786
88- atexit .unregister (unregister_func )
8987 # purge the channels before the event loop goes
9088 purge_channel_caches ()
9189
You can’t perform that action at this time.
0 commit comments