def test_doctestmodule_two_tests_one_fail(self, testdir):
    p = testdir.makepyfile("\n            class MyClass(object):\n                def bad_meth(self):\n                    '''\n                    >>> magic = 42\n                    >>> magic\n                    0\n                    '''\n                def nice_meth(self):\n                    '''\n                    >>> magic = 42\n                    >>> magic - 42\n                    0\n                    '''\n        ")
    reprec = testdir.inline_run(p, '--doctest-modules')
    reprec.assertoutcome(failed=1, passed=1)
def test_doctestmodule_two_tests_one_fail(self, testdir):
    p = testdir.makepyfile("\n            class MyClass(object):\n                def bad_meth(self):\n                    '\n                    >>> magic = 42\n                    >>> magic\n                    0\n                    '\n                def nice_meth(self):\n                    '\n                    >>> magic = 42\n                    >>> magic - 42\n                    0\n                    '\n        ")
    reprec = testdir.inline_run(p, '--doctest-modules')
    reprec.assertoutcome(failed=1, passed=1)