#11244: In python-2.7 deprecation warnings are not shown to the user by default
-----------------------+----------------------------------------------------
   Reporter:  fbissey  |          Owner:  jason          
       Type:  defect   |         Status:  needs_work     
   Priority:  major    |      Milestone:  sage-4.7.1     
  Component:  misc     |       Keywords:                 
Work_issues:           |       Upstream:  N/A            
   Reviewer:           |         Author:  François Bissey
     Merged:           |   Dependencies:                 
-----------------------+----------------------------------------------------
Changes (by fbissey):

  * status:  needs_review => needs_work


Comment:

 There is an issue with
 {{{
 sage -t -force_lib "devel/sage-main/sage/combinat/partition.py"
 **********************************************************************
 File "/usr/share/sage/devel/sage-main/sage/combinat/partition.py", line
 2511:
     sage: RestrictedPartitions(5,[3,2,1])
 Expected:
     doctest:...: DeprecationWarning: RestrictedPartitions is deprecated;
 use Partitions with the parts_in keyword instead.
     doctest:...: DeprecationWarning: RestrictedPartitions_nsk is
 deprecated; use Partitions with the parts_in keyword instead.
     Partitions of 5 restricted to the values [1, 2, 3]
 Got:
     doctest:260: DeprecationWarning: RestrictedPartitions_nsk is
 deprecated; use Partitions with the parts_in keyword instead.
     Partitions of 5 restricted to the values [1, 2, 3]
 }}}
 But clearly I am not sure why the original code should give both a warning
 and a deprecation warning. Of course my patch only let sage display the
 later.

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