MCPcopy Create free account
hub / github.com/python/cpython / test_bad_syntax_with_quiet

Method test_bad_syntax_with_quiet

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

Source from the content-addressed store, hash-verified

319 self.assertIn(b'SyntaxError', stderr)
320
321 def test_bad_syntax_with_quiet(self):
322 bad_syntax = os.path.join(os.path.dirname(__file__),
323 'tokenizedata',
324 'badsyntax_3131.py')
325 rc, stdout, stderr = self.pycompilecmd_failure('-q', bad_syntax)
326 self.assertEqual(rc, 1)
327 self.assertEqual(stdout, b'')
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')

Callers

nothing calls this directly

Calls 4

pycompilecmd_failureMethod · 0.95
joinMethod · 0.45
dirnameMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected