Lines Matching refs:source_path
57 self.source_path = os.path.join(self.directory, '_test.py')
58 self.pyc_path = self.source_path + 'c'
59 self.cache_path = importlib.util.cache_from_source(self.source_path)
65 drive = os.path.splitdrive(self.source_path)[0]
68 with open(self.source_path, 'w') as file:
77 py_compile.compile(self.source_path, self.pyc_path)
91 py_compile.compile(self.source_path, self.pyc_path)
99 py_compile.compile(self.source_path, os.devnull)
102 py_compile.compile(self.source_path)
107 py_compile.compile(os.path.basename(self.source_path),
113 py_compile.compile(os.path.relpath(self.source_path),
130 py_compile.compile(self.source_path, self.pyc_path)
142 py_compile.compile(self.source_path, self.pyc_path)
177 self.assertIn('opt-2', py_compile.compile(self.source_path, optimize=2))
181 self.source_path,
189 self.source_path,
225 self.source_path = os.path.join(self.directory, '_test.py')
226 self.cache_path = importlib.util.cache_from_source(self.source_path)
227 with open(self.source_path, 'w') as file:
247 result = self.pycompilecmd('-', input=self.source_path)
254 rc, stdout, stderr = self.pycompilecmd(self.source_path, self.source_path)
276 rc, stdout, stderr = self.pycompilecmd_failure(self.source_path, should_not_exists)
283 rc, stdout, stderr = self.pycompilecmd_failure('-q', self.source_path, should_not_exists)