merging and refining examples, also refining skipping documentation.

This commit is contained in:
holger krekel
2010-11-20 21:35:55 +01:00
parent bd5a9ba392
commit 158e160823
45 changed files with 371 additions and 452 deletions
@@ -0,0 +1,10 @@
import pytest, py
mydir = py.path.local(__file__).dirpath()
def pytest_runtest_setup(item):
if isinstance(item, pytest.Function):
if not item.fspath.relto(mydir):
return
mod = item.getparent(pytest.Module).obj
if hasattr(mod, 'hello'):
py.builtin.print_("mod.hello", mod.hello)
@@ -0,0 +1,5 @@
hello = "world"
def test_func():
pass