#6649: [with patch, needs review] doctest failure in decorate.py (on OS X only)
-------------------------+--------------------------------------------------
 Reporter:  GeorgSWeber  |       Owner:  GeorgSWeber
     Type:  defect       |      Status:  assigned   
 Priority:  major        |   Milestone:  sage-4.1.1 
Component:  porting      |    Keywords:             
 Reviewer:  mhampton     |      Author:             
   Merged:               |  
-------------------------+--------------------------------------------------

Comment(by mvngu):

 To be extra safe, apply the patch `trac_6649_doctest.patch` to a fresh
 clone of the main repository, rebuild the clone and run it. Then execute
 the following from the Sage command line:
 {{{
 sage: @parallel()
 ....: def f(N): return N^2
 ....:
 sage: v = list(f([1,2,4])); v.sort(); v
 [(((1,), {}), 1), (((2,), {}), 4), (((4,), {}), 16)]
 sage: @parallel('reference')
 ....: def f(N): return N^2
 ....:
 sage: v = list(f([1,2,4])); v.sort(); v
 [(((1,), {}), 1), (((2,), {}), 4), (((4,), {}), 16)]
 sage: sage.parallel.ncpus.ncpus()
 24
 }}}
 The command `sage.parallel.ncpus.ncpus()` would return different answers
 depending on the number of CPU's on your system. In the case of the
 machine sage.math it returns 24, which is the number of cores on that
 machine. For an Intel Mac with dual core, I would expect
 `sage.parallel.ncpus.ncpus()` to return 2. But in any case, testing that
 command on a Mac should not result in a deprecation warning. The idea of
 Georg's patch is to prevent the deprecation warning when using a Mac.

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