Lines Matching refs:tempdir
15 return os.path.normpath(os.path.join(self.tempdir, *parts))
18 return [os.path.join(self.tempdir, *parts) for parts in tuples]
28 self.tempdir = TESTFN + "_dir"
43 self.dir_fd = os.open(self.tempdir, os.O_RDONLY | os.O_DIRECTORY)
50 shutil.rmtree(self.tempdir)
57 p = os.path.join(self.tempdir, pattern)
64 with change_cwd(self.tempdir):
72 self.assertCountEqual([os.path.join(self.tempdir, x) for x in res2],
80 self.assertCountEqual(glob.glob(pattern, root_dir=self.tempdir, **kwargs), res2)
81 self.assertCountEqual(glob.iglob(pattern, root_dir=self.tempdir, **kwargs), res2)
82 btempdir = os.fsencode(self.tempdir)
126 self.assertEqual(glob.glob('', root_dir=self.tempdir), [])
127 self.assertEqual(glob.glob(b'', root_dir=os.fsencode(self.tempdir)), [])
296 with change_cwd(self.tempdir):
319 base = os.path.join(self.tempdir, 'deep')
339 tempdir = TESTFN + "_dir"
340 os.makedirs(tempdir)
341 self.addCleanup(shutil.rmtree, tempdir)
342 with change_cwd(tempdir):