(self)
| 328 | self.assertEqual(stderr, b'') |
| 329 | |
| 330 | def test_file_not_exists(self): |
| 331 | should_not_exists = os.path.join(os.path.dirname(__file__), 'should_not_exists.py') |
| 332 | rc, stdout, stderr = self.pycompilecmd_failure(self.source_path, should_not_exists) |
| 333 | self.assertEqual(rc, 1) |
| 334 | self.assertEqual(stdout, b'') |
| 335 | self.assertIn(b'no such file or directory', stderr.lower()) |
| 336 | |
| 337 | def test_file_not_exists_with_quiet(self): |
| 338 | should_not_exists = os.path.join(os.path.dirname(__file__), 'should_not_exists.py') |
nothing calls this directly
no test coverage detected