Changes between Initial Version and Version 2 of Ticket #26314


Ignore:
Timestamp:
09/19/18 15:55:45 (2 years ago)
Author:
vklein
Comment:

New commits:

91bdf2aTrac #26314 : module interface, fix code and doctest for...

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26314

    • Property Status changed from new to needs_info
    • Property Commit changed from to 91bdf2a370a018c54dfd9762f6263f8147f938e9
    • Property Branch changed from to u/vklein/26314
  • Ticket #26314 – Description

    initial v2  
     1There is still two remaining problems :
     2
     3- I temporary used {{{sleep(float(0.5))}}} to fix a doctest but it can't be a good solution. The problem is using {{{sleep(0.5)}}} doesn't pause the thread 500 ms with python3 :
     4
     5{{{
     6sage: time sleep(0.5)
     7CPU times: user 48 µs, sys: 0 ns, total: 48 µs
     8Wall time: 52.2 µs
     9sage: time sleep(1)
     10CPU times: user 468 µs, sys: 8 µs, total: 476 µs
     11Wall time: 1 s
     12}}}
     13
     14Does somebody knows if there is a ticket related to this problem or if i should open a new one ?
     15
     16- In pexpect.py the doctest
     17{{{
     18sage: w = walltime(t); w > 0.4 and w < 10
     19True
     20}}}
     21fails in python3 because the walltime is shorter than 0.4. I don't know why it should be considered as an error or if it is expected with python3 for some reason.