RustPython icon indicating copy to clipboard operation
RustPython copied to clipboard

Module destruction is missing

Open isac322 opened this issue 3 years ago • 0 comments

Feature

https://github.com/python/cpython/blob/5442561c1a094b68900198bade616da9ed509ac8/Lib/test/test_sys.py#L963-L982 test_sys::SysModuleTest.test_is_finalizing

In TC, AtExit.__del__ is not invoked. Because ref = AtExit() is a module attribute, RustPython must implement module destruction to invoke it.

Found during work on #3776

isac322 avatar Jun 11 '22 08:06 isac322