Lines Matching refs:fn
79 fn = self.get_env_file(*args)
80 self.assertTrue(os.path.isdir(fn))
103 fn = self.get_env_file(self.bindir, self.exe)
104 if not os.path.exists(fn): # diagnostics for Windows buildbot failures
108 self.assertTrue(os.path.exists(fn), 'File %r should exist.' % fn)
168 fn = os.path.join(d, filename)
169 with open(fn, 'wb') as f:
179 fn = os.path.join(self.env_dir, *(subdirs + ('foo',)))
180 self.assertTrue(os.path.exists(fn))
181 with open(fn, 'rb') as f:
187 fn = os.path.join(self.env_dir, *(subdirs + ('foo',)))
188 self.assertFalse(os.path.exists(fn))
191 for fn in os.listdir(path):
192 fn = os.path.join(path, fn)
193 if os.path.islink(fn) or os.path.isfile(fn):
194 os.remove(fn)
195 elif os.path.isdir(fn):
196 rmtree(fn)
201 fn = os.path.join(self.env_dir, *paths)
202 with open(fn, 'wb') as f:
220 fn = self.get_env_file(self.bindir, self.exe)
221 if not os.path.exists(fn):
226 self.assertTrue(os.path.exists(fn), 'File %r should exist.' % fn)
246 fn = self.get_env_file(self.bindir, self.exe)
251 self.assertTrue(os.path.islink(fn))