nose-devs/nose — Issue #372: allow setup to pass info to teardown
Author: jpellerin
Created: 2011-12-14 16:09:27+00:00
State: open

Would be nice to have the ability to have setup pass something to teardown.

When using a class, this is typically done with class attributes:

class test_stuff:
def setUp(self):
self.remember = 'something'
def tearDown(self):
if self.remember == 'something': ...

But when using decorators (@with_setup) and such, this isn't available.

This is especially useful when the test run needs a temporary directory to
run in and setup creates that directory; passing the directory name to
teardown would be useful.

Google Code Info:
Issue #: 334
Author: kq1qu...@gmail.com
Created On: 2010-04-15T16:48:40.000Z
Closed On: