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

Method check_dash_m_failure

Lib/test/test_cmd_line_script.py:451–456  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

449 yield pkg_dir
450
451 def check_dash_m_failure(self, *args):
452 rc, out, err = assert_python_failure('-m', *args, __isolated=False)
453 if verbose > 1:
454 print(repr(out))
455 self.assertEqual(rc, 1)
456 return err
457
458 def test_dash_m_error_code_is_one(self):
459 # If a module is invoked with the -m command line flag

Calls 2

assert_python_failureFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected