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

Method test_stdin

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

Source from the content-addressed store, hash-verified

295 return script_helper.assert_python_failure('-m', 'py_compile', *args)
296
297 def test_stdin(self):
298 self.assertFalse(os.path.exists(self.cache_path))
299 result = self.pycompilecmd('-', input=self.source_path)
300 self.assertEqual(result.returncode, 0)
301 self.assertEqual(result.stdout, b'')
302 self.assertEqual(result.stderr, b'')
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)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected