monkeypatch, doc, apiwarn, deprecation fixes

--HG--
branch : trunk
This commit is contained in:
holger krekel
2009-09-07 17:53:50 +02:00
parent 29d437489d
commit 0f29b503ef
9 changed files with 79 additions and 71 deletions

View File

@@ -6,7 +6,7 @@ def test_forwarding_to_warnings_module():
def test_apiwarn_functional():
capture = py.io.StdCapture()
py.log._apiwarn("x.y.z", "something")
py.log._apiwarn("x.y.z", "something", stacklevel=1)
out, err = capture.reset()
py.builtin.print_("out", out)
py.builtin.print_("err", err)