#12699: Stopgap for 9505
-----------------------------------------+----------------------------------
       Reporter:  jen                    |         Owner:  burcin         
           Type:  defect                 |        Status:  needs_work     
       Priority:  blocker                |     Milestone:  sage-5.0       
      Component:  symbolics              |    Resolution:                 
       Keywords:  rd2                    |   Work issues:                 
Report Upstream:  N/A                    |     Reviewers:  R. Andrew Ohana
        Authors:  Jennifer Balakrishnan  |     Merged in:                 
   Dependencies:  #12691                 |      Stopgaps:                 
-----------------------------------------+----------------------------------
Changes (by jdemeyer):

  * status:  positive_review => needs_work


Comment:

 This causes a doctest failure:
 {{{
 sage -t  -force_lib devel/sage/sage/symbolic/expression.pyx
 **********************************************************************
 File "/padic/scratch/jdemeyer/merger/sage-5.0.beta12/devel/sage-
 main/sage/symbolic/expression.pyx", line 4381:
     sage: f.coefficient(1)
 Exception raised:
     Traceback (most recent call last):
       File
 "/padic/scratch/jdemeyer/merger/sage-5.0.beta12/local/bin/ncadoctest.py",
 line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File
 "/padic/scratch/jdemeyer/merger/sage-5.0.beta12/local/bin/sagedoctest.py",
 line 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File
 "/padic/scratch/jdemeyer/merger/sage-5.0.beta12/local/bin/ncadoctest.py",
 line 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_102[18]>", line 1, in <module>
         f.coefficient(Integer(1))###line 4381:
     sage: f.coefficient(1)
       File "expression.pyx", line 4388, in
 sage.symbolic.expression.Expression.coefficient
 (sage/symbolic/expression.cpp:19387)
         if len(s.variables()) > 1:
       File "element.pyx", line 332, in
 sage.structure.element.Element.__getattr__ (sage/structure/element.c:2919)
       File "parent.pyx", line 330, in
 sage.structure.parent.getattr_from_other_class
 (sage/structure/parent.c:3329)
     AttributeError: 'sage.rings.integer.Integer' object has no attribute
 'variables'
 #0: simplify_sum(expr='sum(q^k,k,0,inf))
 #1: simplify_sum(expr=a*'sum(q^k,k,0,inf))
 **********************************************************************
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12699#comment:9>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to