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

Method test_silent

Lib/test/test_compileall.py:745–750  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

743 self.assertEqual(b'', quiet)
744
745 def test_silent(self):
746 script_helper.make_script(self.pkgdir, 'crunchyfrog', 'bad(syntax')
747 _, quiet, _ = self.assertRunNotOK('-q', self.pkgdir)
748 _, silent, _ = self.assertRunNotOK('-qq', self.pkgdir)
749 self.assertNotEqual(b'', quiet)
750 self.assertEqual(b'', silent)
751
752 def test_regexp(self):
753 self.assertRunOK('-q', '-x', r'ba[^\\/]*$', self.pkgdir)

Callers

nothing calls this directly

Calls 4

assertRunNotOKMethod · 0.95
assertNotEqualMethod · 0.80
make_scriptMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected