Lines Matching +full:open +full:- +full:source
55 self.file_byte_string = ''.join(self.file_list).encode('utf-8')
59 with tokenize.open(self.file_name) as fp:
107 self.assertEqual(getline(FILENAME, -1), EMPTY)
119 with open(filename, encoding='utf-8') as file:
129 with open(os_helper.TESTFN, "w", encoding='utf-8') as fp:
153 # Create a source file and cache its contents
156 with open(source_name, 'w', encoding='utf-8') as source:
157 source.write(SOURCE_1)
162 with open(source_name, encoding='utf-8') as source:
163 for index, line in enumerate(source):
167 with open(source_name, 'w', encoding='utf-8') as source:
168 source.write(SOURCE_2)
177 # Update the cache and check whether it matches the new source file
179 with open(source_name, encoding='utf-8') as source:
180 for index, line in enumerate(source):
254 with open(fname, 'w', encoding='utf-8') as source:
255 source.write(f'print("I am {fname}")')
262 with open(self.modified_file, 'w', encoding='utf-8') as source:
263 source.write('print("was modified")')