D | test_tempfile.py | 45 def nameCheck(self, name, dir, pre, suf): argument 51 self.assertEqual(os.path.abspath(ndir), os.path.abspath(dir), 52 "file '%s' not in directory '%s'" % (name, dir)) 204 def __init__(self, dir, pre, suf, bin): argument 208 (self.fd, self.name) = tempfile._mkstemp_inner(dir, pre, suf, flags) 217 def do_create(self, dir=None, pre="", suf="", bin=1): argument 218 if dir is None: 219 dir = tempfile.gettempdir() 221 file = self.mkstemped(dir, pre, suf, bin) 225 self.nameCheck(file.name, dir, pre, suf) [all …]
|