File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ def __aiter__(self):
325
325
326
326
def __getstate__ (self ):
327
327
# Transfer gc destroy during serialization.
328
- state = dict ( ** super (). __getstate__ () )
328
+ state = self . __dict__ . copy ( )
329
329
state ["_gc_destroy" ] = True
330
330
self ._gc_destroy = False
331
331
return state
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
import asyncio
16
+ import pickle
16
17
import time
17
18
18
19
import pytest
@@ -161,6 +162,7 @@ async def test_generator():
161
162
assert len (all_gen ) == 0
162
163
163
164
r = await superivsor_actor .with_exception ()
165
+ pickle .loads (pickle .dumps (r ))
164
166
del r
165
167
await asyncio .sleep (0 )
166
168
all_gen = await superivsor_actor .get_all_generators ()
You can’t perform that action at this time.
0 commit comments