Changes between Initial Version and Version 1 of Ticket #27537


Ignore:
Timestamp:
06/06/19 20:35:25 (3 years ago)
Author:
slelievre
Comment:

With what version of Sage does the doctest time out? Is it still the case?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27537

    • Property Keywords map_reduce timeout added
    • Property Cc slelievre added
  • Ticket #27537 – Description

    initial v1  
    11On Python 3.7, this doctest times out:
    22{{{
    3             sage: from sage.parallel.map_reduce import RESetMPExample, RESetMapReduceWorker
    4             sage: from threading import Thread
    5             sage: EX = RESetMPExample(maxl=6)
    6             sage: EX.setup_workers(2)
     3sage: from sage.parallel.map_reduce import RESetMPExample, RESetMapReduceWorker
     4sage: from threading import Thread
     5sage: EX = RESetMPExample(maxl=6)
     6sage: EX.setup_workers(2)
    77
    8             sage: w0, w1 = EX._workers
    9             sage: w0._todo.append(42)
    10             sage: thief0 = Thread(target = w0._thief, name="Thief")
    11             sage: thief0.start()
     8sage: w0, w1 = EX._workers
     9sage: w0._todo.append(42)
     10sage: thief0 = Thread(target=w0._thief, name="Thief")
     11sage: thief0.start()
    1212
    13             sage: w1.steal()
    14             42
    15             sage: w0._todo
    16             deque([])
     13sage: w1.steal()
     1442
     15sage: w0._todo
     16deque([])
    1717}}}