mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
setUp and tearDown functions are now passed the test object
This commit is contained in:
parent
f54bad4564
commit
9f556a408b
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue