MCPcopy Index your code
hub / github.com/python/cpython / test_with_files

Method test_with_files

Lib/test/test_py_compile.py:305–310  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

303 self.assertTrue(os.path.exists(self.cache_path))
304
305 def test_with_files(self):
306 rc, stdout, stderr = self.pycompilecmd(self.source_path, self.source_path)
307 self.assertEqual(rc, 0)
308 self.assertEqual(stdout, b'')
309 self.assertEqual(stderr, b'')
310 self.assertTrue(os.path.exists(self.cache_path))
311
312 def test_bad_syntax(self):
313 bad_syntax = os.path.join(os.path.dirname(__file__),

Callers

nothing calls this directly

Calls 4

pycompilecmdMethod · 0.95
assertTrueMethod · 0.80
assertEqualMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected