pytest claims to runs in a single thread, and all my plotting is done in the main thread, my test code does spawn background threads which do complete successfully, and do not interact with matplotlib ...