#12990: Add another doctest to connecting conversion maps
---------------------------------------------------------+------------------
       Reporter:  lftabera                               |         Owner:  
robertwb    
           Type:  defect                                 |        Status:  
needs_review
       Priority:  major                                  |     Milestone:  
sage-5.1    
      Component:  coercion                               |    Resolution:       
       
       Keywords:                                         |   Work issues:       
       
Report Upstream:  N/A                                    |     Reviewers:  
Keshav Kini 
        Authors:  Simon King, Luis Felipe Tabera Alonso  |     Merged in:       
       
   Dependencies:                                         |      Stopgaps:       
       
---------------------------------------------------------+------------------
Changes (by lftabera):

  * status:  needs_info => needs_review


Old description:

> We currently have this error
>
> {{{
> K = NumberField([x^2-2, x^2-3], 'a,b')
> M = K.absolute_field('c')
> M_to_K, K_to_M = M.structure()
> M.register_coercion(K_to_M)
> K.register_coercion(M_to_K)
> M.coerce_map_from(QQ)
> ...
> UnboundLocalError: local variable 'connecting' referenced before
> assignment
> }}}
>
> This error was not present in 4.7.x series

New description:

 between 4.7.x and 5.x series, the following error was introduced:

 {{{
 K = NumberField([x^2-2, x^2-3], 'a,b')
 M = K.absolute_field('c')
 M_to_K, K_to_M = M.structure()
 M.register_coercion(K_to_M)
 K.register_coercion(M_to_K)
 M.coerce_map_from(QQ)
 ...
 UnboundLocalError: local variable 'connecting' referenced before
 assignment
 }}}

 This error was fixed in #12919. We propose to add a new test to that fix.

--

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