Files
pytest2/doc/example/assertion/global_testmodule_config/conftest.py
holger krekel 7aee121bd7 move examples to doc directory
--HG--
branch : trunk
2009-10-29 17:54:37 +01:00

8 lines
239 B
Python

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)