()
| 5148 | exc = e |
| 5149 | |
| 5150 | def make_finalizers(): |
| 5151 | nonlocal exc |
| 5152 | d = {} |
| 5153 | while not finish: |
| 5154 | try: |
| 5155 | # Old Foo's get gradually replaced and later |
| 5156 | # collected by the GC (because of the cyclic ref) |
| 5157 | d[random.getrandbits(5)] = {Foo() for i in range(10)} |
| 5158 | except Exception as e: |
| 5159 | exc = e |
| 5160 | d.clear() |
| 5161 | |
| 5162 | old_interval = sys.getswitchinterval() |
| 5163 | old_threshold = gc.get_threshold() |
nothing calls this directly
no test coverage detected