#12876: Fix element and parent classes of Hom categories to be abstract, and
simplify the Hom logic.
--------------------------------------------------------+-------------------
       Reporter:  nthiery                               |         Owner:  
nthiery                      
           Type:  enhancement                           |        Status:  
needs_work                   
       Priority:  major                                 |     Milestone:  
sage-5.1                     
      Component:  categories                            |    Resolution:        
                       
       Keywords:  categories, Hom                       |   Work issues:  Fx 
doctests in sageinspect.py
Report Upstream:  N/A                                   |     Reviewers:  Simon 
King                   
        Authors:  Nicolas M. ThiƩry                     |     Merged in:        
                       
   Dependencies:  #715, #11521, #12875, #12877, #12215  |      Stopgaps:        
                       
--------------------------------------------------------+-------------------
Changes (by SimonKing):

  * work_issues:  Fx doctests in map.pyx and homset.py => Fx doctests in
                  sageinspect.py


Comment:

 I'm afraid it still needs a tiny bit of work. `make ptestlong` resulted in
 (only) one error, namely
 {{{
 sage -t --long -force_lib "devel/sage/sage/misc/sageinspect.py"
 **********************************************************************
 File
 
"/mnt/local/king/SAGE/stable/sage-5.0.beta13/devel/sage/sage/misc/sageinspect.py",
 line 1495:
     sage: sage_getsourcelines(HC)
 Expected:
     (['    class HomCategory(HomCategory):\n',
      '        def extra_super_categories(self):\n',
      ...
      '                return (self.domain(), self.codomain(),
 self.category())\n'], ...)
 Got:
     (['    class HomCategory(HomCategory):\n', '        pass\n'], 564)
 **********************************************************************
 1 items had failures:
    1 of  24 in __main__.example_27
 ***Test Failed*** 1 failures.
 For whitespace errors, see the file
 /mnt/local/king/.sage/tmp/sageinspect_13253.py
          [14.0 s]

 ----------------------------------------------------------------------
 The following tests failed:


         sage -t --long -force_lib "devel/sage/sage/misc/sageinspect.py"
 Total time for all tests: 14.0 seconds
 }}}

 Apparently this is caused by emptying the !HomCategory of Rings().

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