wotwot / parallel-ssh

Automatically exported from code.google.com/p/parallel-ssh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Teardown code in test classes is never called

GoogleCodeExporter opened this issue · comments

The test classes in test/test.py all use def teardown(self): as the definition 
for the teardown functions. The problem is that the unittest API uses tearDown 
as the name, so those functions are never called, and the tests leave garbage 
folders behind in /tmp.

This commit in my github repository copy of parallel-ssh fixes the issue:

https://github.com/krig/parallel-ssh/commit/597cd3e0886d2b6921a72175eaad8f499e58
a441

Original issue reported on code.google.com by k...@koru.se on 9 Jan 2014 at 10:29