(self)
| 158 | os.chmod(self.directory, mode.st_mode) |
| 159 | |
| 160 | def test_bad_coding(self): |
| 161 | bad_coding = os.path.join(os.path.dirname(__file__), |
| 162 | 'tokenizedata', |
| 163 | 'bad_coding2.py') |
| 164 | with support.captured_stderr(): |
| 165 | self.assertIsNone(py_compile.compile(bad_coding, self.pyc_path, |
| 166 | doraise=False)) |
| 167 | self.assertFalse(os.path.exists(self.pyc_path)) |
| 168 | |
| 169 | def test_source_date_epoch(self): |
| 170 | py_compile.compile(self.source_path, self.pyc_path) |
nothing calls this directly
no test coverage detected