Lines Matching refs:tempdir
14 self.tempdir = tempfile.mkdtemp()
17 for fname in os.listdir(self.tempdir):
19 os.rmdir(self.tempdir)
22 f = open(os.path.join(self.tempdir, fname), 'w')
26 os.mkdir(os.path.join(self.tempdir, fname))
29 fname = os.path.join(self.tempdir, fname)
37 entries = dircache.listdir(self.tempdir)
41 self.assertTrue(dircache.listdir(self.tempdir) is entries)
54 entries = dircache.listdir(self.tempdir)
56 self.assertTrue(dircache.listdir(self.tempdir) is entries)
59 self.assertRaises(OSError, dircache.listdir, self.tempdir+"_nonexistent")
65 dircache.annotate(self.tempdir, lst)