Return the file names for two temp files.
(self, src)
| 88 | sys.stdin, sys.stdout = self.saved |
| 89 | |
| 90 | def getTempFiles(self, src): |
| 91 | """ Return the file names for two temp files. """ |
| 92 | infd, infile = tempfile.mkstemp(suffix='.txt') |
| 93 | with os.fdopen(infd, 'w') as fp: |
| 94 | fp.write(src) |
| 95 | outfd, outfile = tempfile.mkstemp(suffix='.html') |
| 96 | return infile, outfile, outfd |
| 97 | |
| 98 | def testFileNames(self): |
| 99 | infile, outfile, outfd = self.getTempFiles('foo') |