added another funcarg example i had lying around
--HG-- branch : trunk
This commit is contained in:
7
example/assertion/global_testmodule_config/conftest.py
Normal file
7
example/assertion/global_testmodule_config/conftest.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import py
|
||||
|
||||
def pytest_runtest_setup(item):
|
||||
if isinstance(item, py.test.collect.Function):
|
||||
mod = item.getparent(py.test.collect.Module).obj
|
||||
if hasattr(mod, 'hello'):
|
||||
py.builtin.print_("mod.hello", mod.hello)
|
||||
Reference in New Issue
Block a user