File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -282,9 +282,9 @@ void ExecTest()
282
282
{
283
283
PythonEngine . Initialize ( ) ;
284
284
var numRef = CreateNumReference ( ) ;
285
+ Assert . True ( numRef . IsAlive ) ;
285
286
PythonEngine . Shutdown ( ) ; // <- "run" 1 ends
286
287
PythonEngine . Initialize ( ) ; // <- "run" 2 starts
287
- Assert . True ( numRef . IsAlive ) ;
288
288
289
289
GC . Collect ( ) ;
290
290
GC . WaitForPendingFinalizers ( ) ; // <- this will put former `num` into Finalizer queue
@@ -328,9 +328,9 @@ void ExecTest()
328
328
{
329
329
PythonEngine . Initialize ( ) ;
330
330
var objRef = CreateConcreateObject ( ) ;
331
+ Assert . True ( objRef . IsAlive ) ;
331
332
PythonEngine . Shutdown ( ) ; // <- "run" 1 ends
332
333
PythonEngine . Initialize ( ) ; // <- "run" 2 starts
333
- Assert . True ( objRef . IsAlive ) ;
334
334
GC . Collect ( ) ;
335
335
GC . WaitForPendingFinalizers ( ) ;
336
336
Finalizer . Instance . Collect ( forceDispose : true ) ;
You can’t perform that action at this time.
0 commit comments