(self)
| 228 | class PyCompileCLITestCase(unittest.TestCase): |
| 229 | |
| 230 | def setUp(self): |
| 231 | self.directory = tempfile.mkdtemp() |
| 232 | self.source_path = os.path.join(self.directory, '_test.py') |
| 233 | self.cache_path = importlib.util.cache_from_source(self.source_path, |
| 234 | optimization='' if __debug__ else 1) |
| 235 | with open(self.source_path, 'w') as file: |
| 236 | file.write('x = 123\n') |
| 237 | |
| 238 | def tearDown(self): |
| 239 | os_helper.rmtree(self.directory) |