File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -282,9 +282,9 @@ void ExecTest()
282282 {
283283 PythonEngine . Initialize ( ) ;
284284 var numRef = CreateNumReference ( ) ;
285+ Assert . True ( numRef . IsAlive ) ;
285286 PythonEngine . Shutdown ( ) ; // <- "run" 1 ends
286287 PythonEngine . Initialize ( ) ; // <- "run" 2 starts
287- Assert . True ( numRef . IsAlive ) ;
288288
289289 GC . Collect ( ) ;
290290 GC . WaitForPendingFinalizers ( ) ; // <- this will put former `num` into Finalizer queue
@@ -328,9 +328,9 @@ void ExecTest()
328328 {
329329 PythonEngine . Initialize ( ) ;
330330 var objRef = CreateConcreateObject ( ) ;
331+ Assert . True ( objRef . IsAlive ) ;
331332 PythonEngine . Shutdown ( ) ; // <- "run" 1 ends
332333 PythonEngine . Initialize ( ) ; // <- "run" 2 starts
333- Assert . True ( objRef . IsAlive ) ;
334334 GC . Collect ( ) ;
335335 GC . WaitForPendingFinalizers ( ) ;
336336 Finalizer . Instance . Collect ( forceDispose : true ) ;
You can’t perform that action at this time.
0 commit comments