[py-dev] error in teardown wrongly reported as error in setup