def makeTerminal(testCase):
    leader, follower = pty.openpty()
    testCase.addCleanup(os.close, leader)
    testCase.addCleanup(os.close, follower)
    return leader, follower
Create a terminal for a given test case.
dataset/ETHPy150Open twisted/imaginary/imaginary/test/test_runner.py/makeTerminal