--- you can reply above this line --- New issue 276: Issue #217 did not resolved!! https://bitbucket.org/hpk42/pytest/issue/276/issue-217-did-not-resolved
jindou.io: This testcase will failed. ``` class T(unittest.TestCase): @mock.patch("os.path.abspath") def test_hello(self, abspath, tmpdir): os.path.abspath("hello") abspath.assert_any_call("hello") ``` Next will working: ``` @mock.patch("os.path.abspath") @mock.patch("os.path.normpath") def test_someting(normpath, abspath, tmpdir, capsys): abspath.return_value = "this" os.path.normpath(os.path.abspath("hello")) normpath.assert_any_call("this") ``` Responsible: hpk42 -- This is an issue notification from bitbucket.org. You are receiving this either because you are the owner of the issue, or you are following the issue. _______________________________________________ pytest-commit mailing list pytest-commit@python.org http://mail.python.org/mailman/listinfo/pytest-commit