#3893: random_element methods should all accept *args and **kwds
--------------------------------+-------------------------------------------
   Reporter:  malb              |       Owner:  somebody       
       Type:  enhancement       |      Status:  positive_review
   Priority:  major             |   Milestone:  sage-4.6       
  Component:  basic arithmetic  |    Keywords:                 
     Author:  Niles Johnson     |    Upstream:  N/A            
   Reviewer:  Martin Albrecht   |      Merged:                 
Work_issues:                    |  
--------------------------------+-------------------------------------------

Comment(by mpatel):

 With the latest patch applied to a trial 4.6.alpha2, I get two doctest
 failures:
 {{{
 #!python
 sage -t -long "devel/sage/sage/rings/contfrac.py"
 **********************************************************************
 File
 
"/mnt/usb1/scratch/mpatel/tmp/sage-4.6.alpha1-working/devel/sage/sage/rings/contfrac.py",
 line 40:
     sage: a
 Expected:
     [    [-1, 2] [-1, 1, 94]      [0, 2]       [-12]]
     [       [-1]      [0, 2]  [-1, 1, 3]   [0, 1, 2]]
     [    [-3, 2]   [0, 1, 2]        [-1]         [1]]
     [       [-1]      [0, 3]         [1]        [-1]]
 Got:
     [    [-1, 2] [-1, 1, 94]      [0, 2]       [-12]]
     [       [-1]      [0, 2]  [-1, 1, 3]   [0, 1, 2]]
     [    [-3, 2]         [0]   [0, 1, 2]        [-1]]
     [        [1]        [-1]      [0, 3]         [1]]
 **********************************************************************
 File
 
"/mnt/usb1/scratch/mpatel/tmp/sage-4.6.alpha1-working/devel/sage/sage/rings/contfrac.py",
 line 46:
     sage: f
 Expected:
     [1]*x^4 + [2]*x^3 + ([-12, 1, 14, 7, 1, 1, 7])*x^2 + ([-40, 2, 32, 2,
 1, 1, 2])*x + [8, 1, 5, 2, 14, 1, 1, 3]
 Got:
     [1]*x^4 + ([-2, 3])*x^3 + [14, 1, 1, 1, 9, 1, 8]*x^2 + ([-13, 4, 1, 2,
 1, 1, 1, 1, 1, 2, 2])*x + [-6, 1, 5, 9, 1, 5]
 **********************************************************************
 }}}
 Perhaps there's an interaction with one of the
 
[http://trac.sagemath.org/sage_trac/query?order=priority&col=id&col=summary&col=status&col=type&col=priority&col=milestone&col=component&merged=~sage-4.6.alpha2
 already merged tickets]?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/3893#comment:7>
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