현재 (해당 응용 프로그램과 함께) 파일을 여는 단위 테스트를 작성한 다음 프로그램이 닫힐 때까지 테스트 실행을 기다려야합니다.Python Unittest : 프로그램이 닫힐 때까지 열어서 대기하십시오.
def test_HFG(self):
#....
print "please edit this file"
os.chdir(r'C:\test\a')
os.startfile("myfile.vdx")
# here I need a "stop until the program is closed"-function
#....
누구나 내 계획을 (가능한 한 간단하게) 실현하는 방법을 알고 있습니까?