return a Path object pointing to a fresh new temporary directory
(which we created ourself).
def mkdtemp(cls):
origin: type
where:
function source:
def mkdtemp(cls):
""" return a Path object pointing to a fresh new temporary directory
(which we created ourself).
"""
import tempfile
tries = 10
for i in range(tries):
dname = tempfile.mktemp()
dpath = cls(tempfile.mktemp())
try:
dpath.mkdir()
except (py.error.EEXIST, py.error.EPERM, py.error.EACCES):
continue
return dpath
raise py.error.ENOENT(dpath, "could not create tempdir, %d tries" % tries)
called in /home/johnny/projects/merlinux/py/dist/py/path/svn/wccommand.py
traceback path.local.mkdtemp.0
called in /home/johnny/projects/merlinux/py/dist/py/path/svn/urlcommand.py
traceback path.local.mkdtemp.1
called in /home/johnny/projects/merlinux/py/dist/py/path/local/testing/test_local.py
traceback path.local.mkdtemp.2
called in /home/johnny/projects/merlinux/py/dist/py/path/svn/wccommand.py
traceback path.local.mkdtemp.3
called in /home/johnny/projects/merlinux/py/dist/py/rest/convert.py
traceback path.local.mkdtemp.4
called in /home/johnny/projects/merlinux/py/dist/py/rest/convert.py
traceback path.local.mkdtemp.5
called in /home/johnny/projects/merlinux/py/dist/py/rest/convert.py
traceback path.local.mkdtemp.6
called in /home/johnny/projects/merlinux/py/dist/py/path/svn/urlcommand.py
traceback path.local.mkdtemp.7
called in /home/johnny/projects/merlinux/py/dist/py/path/svn/wccommand.py
traceback path.local.mkdtemp.8
called in /home/johnny/projects/merlinux/py/dist/py/path/local/testing/test_local.py
traceback path.local.mkdtemp.9
called in /home/johnny/projects/merlinux/py/dist/py/rest/convert.py
traceback path.local.mkdtemp.10
called in /home/johnny/projects/merlinux/py/dist/py/rest/convert.py