If you watch a pipeline while running the python tests you will notice that the status remains "running" even after the python test has deleted the pipeline.
On the other hand, it's certainly preferable not to delete the pipeline while the user is watching it. But the status could transition to something else like "unknown" or "deleted".