Return the file names for two temp files.
(self, src)
| 112 | sys.stdin, sys.stdout = self.saved |
| 113 | |
| 114 | def getTempFiles(self, src): |
| 115 | """ Return the file names for two temp files. """ |
| 116 | infd, infile = tempfile.mkstemp(suffix='.txt') |
| 117 | with os.fdopen(infd, 'w') as fp: |
| 118 | fp.write(src) |
| 119 | outfd, outfile = tempfile.mkstemp(suffix='.html') |
| 120 | return infile, outfile, outfd |
| 121 | |
| 122 | def testFileNames(self): |
| 123 | infile, outfile, outfd = self.getTempFiles('foo') |