#11898: Testing sage/misc/hg.py verbosely starts "less"
------------------------+---------------------------------------------------
   Reporter:  jdemeyer  |          Owner:  mvngu             
       Type:  defect    |         Status:  needs_review      
   Priority:  blocker   |      Milestone:  sage-4.7.2        
  Component:  doctest   |       Keywords:  mercurial hg pager
Work_issues:            |       Upstream:  N/A               
   Reviewer:            |         Author:  John Palmieri     
     Merged:            |   Dependencies:                    
------------------------+---------------------------------------------------

Comment(by jhpalmieri):

 Another option would be a patch like this (in the `pager` function):
 {{{
 #!diff
 diff --git a/sage/misc/hg.py b/sage/misc/hg.py
 --- a/sage/misc/hg.py
 +++ b/sage/misc/hg.py
 @@ -112,7 +112,8 @@ def pager():
          '--config pager.pager=cat'
          sage: sage.server.support.EMBEDDED_MODE=False
      """
 -    if embedded():
 +    from sage.plot.plot import DOCTEST_MODE
 +    if embedded() or DOCTEST_MODE:
          return '--config pager.pager=cat'
      else:
          return '--config pager.pager="LESS=\'R\' less"'
 }}}
 This would require changing the doctests for the `pager` function, and
 those doctests wouldn't be as helpful.

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