def METHOD_NAME(self):
    """Test exception path in exception_validate, expecting windows line endings.
    """
    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\r\nB"
    tt.ipexec_validate(self.fname, expected_out=out, expected_err="C\r\nD")