'return a Path object pointing to a fresh new temporary directory
(which we created ourself).'

def mkdtemp(cls, rootdir=None):

    import tempfile
    if (rootdir is None):
        rootdir = cls.get_temproot()
    return cls(py.error.checked_call(tempfile.mkdtemp, dir=str(rootdir)))
