@ashaw uploaded adjusted doctest,
- using your function to get the parent function and lineno (btw the lineno is e.g. 16 where the function starts at 17 - I guess you are aware and count e.g. with 0) Surprised I couldn’t solve this with the frame, but guess there is a reason you wrote that function ;-).
- haven’t changed that array yet: For one API we might (probably will) have several tests - at least it is a logical possibility and wouldn’t want to overwrite than other tests. So, arrays is fine?
To Dos, provided this works for you:
- consider: get parent func to common util (or I import your class), so far copied the func
- make one common PR
- then, can start registering tests with this_tests