def test_ignore_import_errors_on_doctest(self, testdir):
    p = testdir.makepyfile("\n            import asdf\n\n            def add_one(x):\n                '''\n                >>> add_one(1)\n                2\n                '''\n                return x + 1\n        ")
    reprec = testdir.inline_run(p, '--doctest-modules', '--doctest-ignore-import-errors')
    reprec.assertoutcome(skipped=1, failed=1, passed=0)
def test_ignore_import_errors_on_doctest(self, testdir):
    p = testdir.makepyfile("\n            import asdf\n\n            def add_one(x):\n                '\n                >>> add_one(1)\n                2\n                '\n                return x + 1\n        ")
    reprec = testdir.inline_run(p, '--doctest-modules', '--doctest-ignore-import-errors')
    reprec.assertoutcome(skipped=1, failed=1, passed=0)