Ticket #9446: trac_9446-trace_doctest_timeout.patch

File trac_9446-trace_doctest_timeout.patch, 774 bytes (added by mpatel, 11 years ago)

Increase pexpect timeout for test

  • sage/misc/trace.py

    # HG changeset patch
    # User Mitesh Patel <qed777@gmail.com>
    # Date 1286681375 25200
    # Node ID 9ac4368a93c51be33157879efc59b6d16ccc322d
    # Parent  7bd2edbb8f8d65ce65560c70ad49ca6846021859
    #9446: Increase timeout for trace.py doctest
    
    diff --git a/sage/misc/trace.py b/sage/misc/trace.py
    a b def trace(code, preparse=True): 
    5151        sage: s = pexpect.spawn('sage')
    5252        sage: _ = s.sendline("trace('print factor(10)'); print 3+97")
    5353        sage: _ = s.sendline("s"); _ = s.sendline("c");
    54         sage: _ = s.expect('100')
     54        sage: _ = s.expect('100', timeout=90)
    5555   
    5656    Seeing the ipdb prompt and the 2 \* 5 in the output below is a
    5757    strong indication that the trace command worked correctly.