Lines Matching refs:testfn
820 testfn = test.support.TESTFN
821 self.addCleanup(test.support.unlink, testfn)
822 proc = self.Process(target=self._test_stderr_flush, args=(testfn,))
825 with open(testfn, 'r') as f:
833 def _test_stderr_flush(cls, testfn): argument
834 fd = os.open(testfn, os.O_WRONLY | os.O_CREAT | os.O_EXCL)
840 def _test_sys_exit(cls, reason, testfn): argument
841 fd = os.open(testfn, os.O_WRONLY | os.O_CREAT | os.O_EXCL)
850 testfn = test.support.TESTFN
851 self.addCleanup(test.support.unlink, testfn)
857 p = self.Process(target=self._test_sys_exit, args=(reason, testfn))
863 with open(testfn, 'r') as f:
867 os.unlink(testfn)