Kaydet (Commit) 9f556a40 authored tarafından Jim Fulton's avatar Jim Fulton

setUp and tearDown functions are now passed the test object

üst f54bad45
...@@ -12,9 +12,9 @@ def test_main(): ...@@ -12,9 +12,9 @@ def test_main():
else: else:
import _threading_local import _threading_local
local_orig = _threading_local.local local_orig = _threading_local.local
def setUp(): def setUp(test):
_threading_local.local = _local _threading_local.local = _local
def tearDown(): def tearDown(test):
_threading_local.local = local_orig _threading_local.local = local_orig
suite.addTest(DocTestSuite('_threading_local', suite.addTest(DocTestSuite('_threading_local',
setUp=setUp, tearDown=tearDown) setUp=setUp, tearDown=tearDown)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment