addresses issue15
expose fillfuncargs as py.test.collect._fillfuncargs instead for now --HG-- branch : trunk
This commit is contained in:
parent
e79f4d298c
commit
f50b39980c
|
@ -79,7 +79,6 @@ initpkg(__name__,
|
||||||
'test.fail' : ('./test/outcome.py', 'fail'),
|
'test.fail' : ('./test/outcome.py', 'fail'),
|
||||||
'test.exit' : ('./test/outcome.py', 'exit'),
|
'test.exit' : ('./test/outcome.py', 'exit'),
|
||||||
'test.pdb' : ('./test/custompdb.py', 'set_trace'),
|
'test.pdb' : ('./test/custompdb.py', 'set_trace'),
|
||||||
'test.fillfuncargs' : ('./test/funcargs.py', 'fillfuncargs'),
|
|
||||||
|
|
||||||
# configuration/initialization related test api
|
# configuration/initialization related test api
|
||||||
'test.config' : ('./test/config.py', 'config_per_process'),
|
'test.config' : ('./test/config.py', 'config_per_process'),
|
||||||
|
@ -96,6 +95,7 @@ initpkg(__name__,
|
||||||
'test.collect.Instance' : ('./test/pycollect.py', 'Instance'),
|
'test.collect.Instance' : ('./test/pycollect.py', 'Instance'),
|
||||||
'test.collect.Generator' : ('./test/pycollect.py', 'Generator'),
|
'test.collect.Generator' : ('./test/pycollect.py', 'Generator'),
|
||||||
'test.collect.Function' : ('./test/pycollect.py', 'Function'),
|
'test.collect.Function' : ('./test/pycollect.py', 'Function'),
|
||||||
|
'test.collect._fillfuncargs' : ('./test/funcargs.py', 'fillfuncargs'),
|
||||||
|
|
||||||
# thread related API (still in early design phase)
|
# thread related API (still in early design phase)
|
||||||
'_thread.WorkerPool' : ('./thread/pool.py', 'WorkerPool'),
|
'_thread.WorkerPool' : ('./thread/pool.py', 'WorkerPool'),
|
||||||
|
|
|
@ -87,7 +87,7 @@ class TestFillFuncArgs:
|
||||||
item.config.pluginmanager.register(Provider())
|
item.config.pluginmanager.register(Provider())
|
||||||
if hasattr(item, '_args'):
|
if hasattr(item, '_args'):
|
||||||
del item._args
|
del item._args
|
||||||
py.test.fillfuncargs(item)
|
py.test.collect._fillfuncargs(item)
|
||||||
assert len(item.funcargs) == 1
|
assert len(item.funcargs) == 1
|
||||||
|
|
||||||
class TestRequest:
|
class TestRequest:
|
||||||
|
|
Loading…
Reference in New Issue