Bug Description
After 195f774 there are ValueError: Cell is empty errors when running the Newton test suite.
It happens while trying to resolve _Specialised.TILE_N_RESIDUALS. _Specialised is found in adj.func.__code__.co_freevars, but the corresponding adj.func.__closure__[idx].cell_contents has value empty. This produces a ValueError when trying to access it. Thus reverting to the previous exception handling would prevent the test failures.
Note that __closure__ is undocumented. We should instead consider using inspect.getclosurevars.
System Information
No response
Bug Description
After 195f774 there are
ValueError: Cell is emptyerrors when running the Newton test suite.It happens while trying to resolve
_Specialised.TILE_N_RESIDUALS._Specialisedis found inadj.func.__code__.co_freevars, but the correspondingadj.func.__closure__[idx].cell_contentshas valueempty. This produces aValueErrorwhen trying to access it. Thus reverting to the previous exception handling would prevent the test failures.Note that
__closure__is undocumented. We should instead consider usinginspect.getclosurevars.System Information
No response