SIGN IN SIGN UP

gh-125900: Clean-up logic around immortalization in free-threading (#125901)

* Remove `@suppress_immortalization` decorator
* Make suppression flag per-thread instead of per-interpreter
* Suppress immortalization in `eval()` to avoid refleaks in three tests
  (test_datetime.test_roundtrip, test_logging.test_config8_ok, and
   test_random.test_after_fork).
* frozenset() is constant, but not a singleton. When run multiple times,
  the test could fail due to constant interning.
S
Sam Gross committed
332356b880576a1a00b5dc34f03d7d3995dd4512
Parent: 1306f33
Committed by GitHub <noreply@github.com> on 10/24/2024, 10:09:59 PM