[Pytest-commit] Issue #602: xdist does not report warnings (hpk42/pytest)

2014-09-30 Thread Andreas Pelme
New issue 602: xdist does not report warnings https://bitbucket.org/hpk42/pytest/issue/602/xdist-does-not-report-warnings Andreas Pelme: Warnings raised with `request.node.warn` does not show warnings. `-rw` does not give any warning output either. Here is the same test run without and with xdi

[Pytest-commit] Issue #603: monkeypatch does not work on already-imported function (hpk42/pytest)

2014-09-30 Thread Marco Chomut
New issue 603: monkeypatch does not work on already-imported function https://bitbucket.org/hpk42/pytest/issue/603/monkeypatch-does-not-work-on-already Marco Chomut: Given the following tests file: ``` #!python from project.main import foo def test_foo(monkeypatch): monkeypatch.setattr('pr

Re: [Pytest-commit] Issue #603: monkeypatch does not work on already-imported function (hpk42/pytest)

2014-09-30 Thread Anatoly Bubenkov
monkeypatch receives the object, not the dotted name of the object to mock so: ``` #!python from project import bar def test_foo(monkeypatch): monkeypatch.setattr(bar, 'zoo', lambda x: 0) assert foo() == 0 ``` On 30 September 2014 17:16, Marco Chomut wrote: > New issue 603: monkeypat