Home | History | Annotate | Download | only in test

Lines Matching refs:fn

76         fn = self.get_env_file(*args)
77 self.assertTrue(os.path.isdir(fn))
104 fn = self.get_env_file(self.bindir, self.exe)
105 if not os.path.exists(fn): # diagnostics for Windows buildbot failures
109 self.assertTrue(os.path.exists(fn), 'File %r should exist.' % fn)
171 fn = os.path.join(d, filename)
172 with open(fn, 'wb') as f:
182 fn = os.path.join(self.env_dir, *(subdirs + ('foo',)))
183 self.assertTrue(os.path.exists(fn))
184 with open(fn, 'rb') as f:
190 fn = os.path.join(self.env_dir, *(subdirs + ('foo',)))
191 self.assertFalse(os.path.exists(fn))
194 for fn in os.listdir(path):
195 fn = os.path.join(path, fn)
196 if os.path.islink(fn) or os.path.isfile(fn):
197 os.remove(fn)
198 elif os.path.isdir(fn):
199 rmtree(fn)
204 fn = os.path.join(self.env_dir, *paths)
205 with open(fn, 'wb') as f:
223 fn = self.get_env_file(self.bindir, self.exe)
224 if not os.path.exists(fn):
229 self.assertTrue(os.path.exists(fn), 'File %r should exist.' % fn)
249 fn = self.get_env_file(self.bindir, self.exe)
254 self.assertTrue(os.path.islink(fn))