def METHOD_NAME(self):
    quiet_exit = '%s -c "import sys; sys.exit(1)"' % python
    out, err, code = get_output_error_code(quiet_exit)
    self.assertEqual(out, '')
    self.assertEqual(err, '')
    self.assertEqual(code, 1)
    out, err, code = get_output_error_code(f'{python} "{self.fname}"')
    self.assertEqual(out, 'on stdout')
    self.assertEqual(err, 'on stderr')
    self.assertEqual(code, 0)