setUp and tearDown functions are now passed the test object

This commit is contained in:
Jim Fulton 2004-08-28 14:58:31 +00:00
parent f54bad4564
commit 9f556a408b
1 changed files with 2 additions and 2 deletions

View File

@ -12,9 +12,9 @@ def test_main():
else:
import _threading_local
local_orig = _threading_local.local
def setUp():
def setUp(test):
_threading_local.local = _local
def tearDown():
def tearDown(test):
_threading_local.local = local_orig
suite.addTest(DocTestSuite('_threading_local',
setUp=setUp, tearDown=tearDown)