#17419: SageDoctestTextFormatter: remove @warn_format_error
-------------------------------------+------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  enhancement        |       Status:  new
       Priority:  major              |    Milestone:  sage-6.5
      Component:  doctest framework  |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jeroen Demeyer     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
   Dependencies:                     |     Stopgaps:
-------------------------------------+------------------------

Comment (by jdemeyer):

 I now get (sage-6.5.beta1):
 {{{
 sage: plot(x, typeset='garbage')
 /usr/local/src/sage-config/local/lib/python2.7/site-
 packages/IPython/core/formatters.py:239: FormatterWarning: Exception in
 text/plain formatter: typeset must be set to one of 'default', 'latex', or
 'type1'; got 'garbage'.
   FormatterWarning,
 ---------------------------------------------------------------------------
 KeyError                                  Traceback (most recent call
 last)
 <ipython-input-1-37a028c62b8b> in <module>()
 ----> 1 plot(x, typeset='garbage')

 /usr/local/src/sage-config/local/lib/python2.7/site-
 packages/IPython/core/displayhook.pyc in __call__(self, result)
     251             self.write_output_prompt()
     252             format_dict, md_dict =
 self.compute_format_data(result)
 --> 253             self.write_format_data(format_dict, md_dict)
     254             self.update_user_ns(result)
     255             self.log_output(format_dict)

 /usr/local/src/sage-config/local/lib/python2.7/site-
 packages/IPython/core/displayhook.pyc in write_format_data(self,
 format_dict, md_dict)
     172         # newline, even if all the prompt separators are ''. This
 is the
     173         # standard IPython behavior.
 --> 174         result_repr = format_dict['text/plain']
     175         if '\n' in result_repr:
     176             # So that multi-line strings line up with the left
 column of

 KeyError: 'text/plain'
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/17419#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to