'#713: Fix --junit-xml option when used with --doctest-modules.'

def test_junit_report_for_doctest(self, testdir):

    p = testdir.makepyfile("\n                                                def    foo():\n                                                                '''\n                                                                >>>    1    +    1\n                                                                3\n                                                                '''\n                                                                pass\n                                ")
    reprec = testdir.inline_run(p, '--doctest-modules', '--junit-xml=junit.xml')
    reprec.assertoutcome(failed=1)
