

def test_param_e(self):
    with cm.assertRaises(core.NonZeroReturnCodeError) as cm:
        core._create_result('cat non_existent_file', 'e')
    result = cm.exception.result
    self.assertEqual(len(self.stdout_mock.lines), 0)
    self.assertGreater(len(self.stderr_mock.lines), 0)
    self.assertEqual(len(self.stderr_mock.lines), len(result.stderr_lines))

dataset/ETHPy150Open lamerman/shellpy/shellpython/tests/test_unix_core.py TestExecute.test_param_e/VarMisuse@11/14 `self`->`cm`