Changes between Initial Version and Version 3 of Ticket #31063


Ignore:
Timestamp:
Dec 16, 2020, 10:08:11 PM (2 years ago)
Author:
arojas
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31063

    • Property Status changed from new to needs_review
    • Property Authors changed from to Antonio Rojas
    • Property Cc fbissey mkoeppe isuruf charpent added
    • Property Component changed from PLEASE CHANGE to packages: standard
    • Property Summary changed from Fix a test failure with readline 6.1 to Fix a test failure with readline 8.1
    • Property Branch changed from to u/arojas/fix_a_test_failure_with_readline_6_1
    • Property Commit changed from to e2941823d986a5a8116140c6c61287315ef7f71a
    • Property Type changed from PLEASE CHANGE to defect
  • Ticket #31063 – Description

    initial v3  
     1readline 8.1 seems to print more escape characters in raw mode, which causes a test failure in `misc/trace.py`
     2
     3{{{
     4File "/usr/lib/python3.9/site-packages/sage/misc/trace.py", line 66, in sage.misc.trace.trace
     5Failed example:
     6    print(s.before[s.before.find(b'--'):].decode())
     7Expected:
     8    --...
     9    ipdb> c
     10    2 * 5
     11Got:
     12    --Call--
     13    > <CSI-0;32m>/usr/lib/python3.9/site-packages/sage/arith/misc.py<CSI-0m>(2422)<CSI-0;36m>factor<CSI-0;34m>()<CSI-0m>
     14    <CSI-0;32m>   2420 <CSI-0;31m><CSI-0;34m><CSI-0m><CSI-0m>
     15    <CSI-0m><CSI-0;32m>   2421 <CSI-0;31m><CSI-0;34m><CSI-0m><CSI-0m>
     16    <CSI-0m><CSI-0;32m>-> 2422 <CSI-0;31m><CSI-0;32m>def<CSI-0m> <CSI-0m>factor<CSI-0m><CSI-0;34m>(<CSI-0m><CSI-0m>n<CSI-0m><CSI-0;34m>,<CSI-0m> <CSI-0m>proof<CSI-0m><CSI-0;34m>=<CSI-0m><CSI-0;32m>None<CSI-0m><CSI-0;34m>,<CSI-0m> <CSI-0m>int_<CSI-0m><CSI-0;34m>=<CSI-0m><CSI-0;32m>False<CSI-0m><CSI-0;34m>,<CSI-0m> <CSI-0m>algorithm<CSI-0m><CSI-0;34m>=<CSI-0m><CSI-0;34m>'pari'<CSI-0m><CSI-0;34m>,<CSI-0m> <CSI-0m>verbose<CSI-0m><CSI-0;34m>=<CSI-0m><CSI-0;36m>0<CSI-0m><CSI-0;34m>,<CSI-0m> <CSI-0;34m>**<CSI-0m><CSI-0m>kwds<CSI-0m><CSI-0;34m>)<CSI-0m><CSI-0;34m>:<CSI-0m><CSI-0;34m><CSI-0m><CSI-0;34m><CSI-0m><CSI-0m>
     17    <CSI-0m><CSI-0;32m>   2423 <CSI-0;31m>    """
     18    <CSI-0m><CSI-0;32m>   2424 <CSI-0;31m>    <CSI-0m>Return<CSI-0m> <CSI-0m>the<CSI-0m> <CSI-0m>factorization<CSI-0m> <CSI-0m>of<CSI-0m><CSI-0;31m> <CSI-0m><CSI-0;31m>`<CSI-0m><CSI-0;31m>`<CSI-0m><CSI-0m>n<CSI-0m><CSI-0;31m>`<CSI-0m><CSI-0;31m>`<CSI-0m><CSI-0;34m>.<CSI-0m>  <CSI-0m>The<CSI-0m> <CSI-0m>result<CSI-0m> <CSI-0m>depends<CSI-0m> <CSI-0m>on<CSI-0m> <CSI-0m>the<CSI-0m><CSI-0;34m><CSI-0m><CSI-0;34m><CSI-0m><CSI-0m>
     19    <CSI-0m>
     20    <CSI-?2004h>ipdb> c
     212 * 5CSI-?2004l>
     22    <BLANKLINE>
     23**********************************************************************
     24}}}