def setUp(self):
    self.directory = tempfile.mkdtemp()
    self.source_path = os.path.join(self.directory, '_test.py')
    with open(self.source_path, 'w', encoding='utf-8') as file:
        file.write('# -*- coding: utf-8 -*-\n')
        file.write('print u"€"\n')
def setUp(self):
    self.directory = tempfile.mkdtemp()
    self.source_path = os.path.join(self.directory, '_test.py')
    with open(self.source_path, 'w', encoding='utf-8') as file:
        file.write('# -*- coding: utf-8 -*-\n')
        file.write('print u"€"\n')