def makeSourceFile(self, sourceLines):
        """
        Write the given list of lines to a text file and return the absolute
        path to it.
        """
        script = _asFilesystemBytes(self.mktemp())
        with open(script, 'wt') as scriptFile:
            scriptFile.write(os.linesep.join(sourceLines) + os.linesep)
        return os.path.abspath(script)

        Write the given list of lines to a text file and return the absolute
        path to it.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/test/test_process.py