def add_bad_source_file(self):
    self.bad_source_path = os.path.join(self.directory, '_test_bad.py')
    with open(self.bad_source_path, 'w') as file:
        file.write('x (\n')
def add_bad_source_file(self):
    self.bad_source_path = os.path.join(self.directory, '_test_bad.py')
    with open(self.bad_source_path, 'w') as file:
        file.write('x (\n')