Re: [go-nuts] Go 1.20.x undocumented change: t.Run panics when called in t.Cleanup

2023-03-09 Thread Ian Lance Taylor
On Thu, Mar 9, 2023 at 8:11 AM Samuel Nelson wrote: > > I am a maintainer of a library that was calling `t.Run` inside of > `t.Cleanup`, in order to call test functions after everything (the test > functions and their corresponding setup/teardown functions) had been > registered. Go 1.20.x chan

[go-nuts] Go 1.20.x undocumented change: t.Run panics when called in t.Cleanup

2023-03-09 Thread Samuel Nelson
I am a maintainer of a library that was calling `t.Run` inside of `t.Cleanup`, in order to call test functions after everything (the test functions and their corresponding setup/teardown functions) had been registered. Go 1.20.x changed that so that `t.Run` cannot be called inside of `t.Cleanup