@@ -425,27 +425,27 @@ async def abandoned_main(in_host: InHost) -> None:
425
425
do_abandoned_guest_run ()
426
426
gc_collect_harder ()
427
427
428
- # If you have problems some day figuring out what's holding onto a
429
- # reference to the unrolled_run generator and making this test fail,
430
- # then this might be useful to help track it down. (It assumes you
431
- # also hack start_guest_run so that it does 'global W; W =
432
- # weakref(unrolled_run_gen)'.)
433
- #
434
- # import gc
435
- # print(trio._core._run.W)
436
- # targets = [trio._core._run.W()]
437
- # for i in range(15):
438
- # new_targets = []
439
- # for target in targets:
440
- # new_targets += gc.get_referrers(target)
441
- # new_targets.remove(targets)
442
- # print("#####################")
443
- # print(f"depth {i}: {len(new_targets)}")
444
- # print(new_targets)
445
- # targets = new_targets
446
-
447
- with pytest .raises (RuntimeError ):
448
- trio .current_time ()
428
+ # If you have problems some day figuring out what's holding onto a
429
+ # reference to the unrolled_run generator and making this test fail,
430
+ # then this might be useful to help track it down. (It assumes you
431
+ # also hack start_guest_run so that it does 'global W; W =
432
+ # weakref(unrolled_run_gen)'.)
433
+ #
434
+ # import gc
435
+ # print(trio._core._run.W)
436
+ # targets = [trio._core._run.W()]
437
+ # for i in range(15):
438
+ # new_targets = []
439
+ # for target in targets:
440
+ # new_targets += gc.get_referrers(target)
441
+ # new_targets.remove(targets)
442
+ # print("#####################")
443
+ # print(f"depth {i}: {len(new_targets)}")
444
+ # print(new_targets)
445
+ # targets = new_targets
446
+
447
+ with pytest .raises (RuntimeError ):
448
+ trio .current_time ()
449
449
450
450
451
451
def aiotrio_run (
0 commit comments