fix issue93 - avoid "delayed" teardowns for distributed testing by

simplifying handling of teardowns.
This commit is contained in:
holger krekel
2011-12-02 21:00:19 +00:00
parent b28977fbaf
commit c4fe622b82
8 changed files with 55 additions and 51 deletions

View File

@@ -30,9 +30,9 @@ class TestSetupState:
def test_teardown_exact_stack_empty(self, testdir):
item = testdir.getitem("def test_func(): pass")
ss = runner.SetupState()
ss.teardown_exact(item)
ss.teardown_exact(item)
ss.teardown_exact(item)
ss.teardown_exact(item, None)
ss.teardown_exact(item, None)
ss.teardown_exact(item, None)
def test_setup_fails_and_failure_is_cached(self, testdir):
item = testdir.getitem("""