def METHOD_NAME(self):
    """Test exception path in exception_validate.
    """
    self.mktmp("import sys\n"
               "print('A')\n"
               "print('B')\n"
               "print('C', file=sys.stderr)\n"
               "print('D', file=sys.stderr)\n"
               )
    out = "A\nB"
    tt.ipexec_validate(self.fname, expected_out=out, expected_err="C\nD")