def mktemp(self):
        newDir = tempfile.mkdtemp(dir="/tmp/")
        self.addCleanup(shutil.rmtree, newDir)
        return newDir
Make our own directory.
dataset/ETHPy150Open twisted/twisted/twisted/python/test/test_release.py/ExternalTempdirTestCase.mktemp