Lines Matching refs:fname
246 fname = tempfile.mktemp()
248 test_file = LocalFile(fname, "w")
253 f = open(fname, "r")
257 test_file.init(fname, "r")
262 test_file = LocalFile(fname, "r")
267 if not os.path.isfile(fname):
268 raise RuntimeError, "The file '%s' does not exist, but we are explicitly testing create semantics when it does" % (fname,)
269 test_file = LocalFile(fname, "w")
273 f = open(fname, "r")
279 os.unlink(fname)
286 fname = components.__file__
287 if fname[-1] in "cCoO": # fix .pyc/.pyo
288 fname = fname[:-1]
289 expected = open(fname, "rb").read()
290 # convert the fname to a URI.
291 url = LocalFileToURL(fname)
300 _DoTestRead( LocalFile(fname), expected )