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

Method assert_python_failure

Lib/test/test_interpreters/utils.py:472–475  ·  view source on GitHub ↗
(self, *argv)

Source from the content-addressed store, hash-verified

470 return stdout, stderr
471
472 def assert_python_failure(self, *argv):
473 exitcode, stdout, stderr = self.run_python(*argv)
474 self.assertNotEqual(exitcode, 0)
475 return stdout, stderr
476
477 def assert_ns_equal(self, ns1, ns2, msg=None):
478 # This is mostly copied from TestCase.assertDictEqual.

Calls 2

run_pythonMethod · 0.95
assertNotEqualMethod · 0.80