示例#1
0
def runtest(*argv):
    with patch("sys.argv", ["runtest"] + list(argv)):
        with patch("sys.exit", MockExit()) as mockexit:
            with patch("sys.stderr", StringIO()) as mockerr:
                from itest.main import main

                main()
    return mockexit.exitcode, mockerr.getvalue()
示例#2
0
from itest import main

main.main()
示例#3
0
from itest.main import main


main()