Opened 4 years ago

Closed 4 years ago

#27172 closed defect (fixed)

1 optional doctest failing in cmdline.py related to pandoc

Reported by: Sébastien Labbé Owned by:
Priority: major Milestone: sage-8.7
Component: packages: optional Keywords:
Cc: Thierry Monteil Merged in:
Authors: Sébastien Labbé Reviewers: Travis Scrimshaw
Report Upstream: N/A Work issues:
Branch: f2579fd (Commits, GitHub, GitLab) Commit: f2579fd370039a4d8178d65d0cdfbd60eabda174
Dependencies: Stopgaps:

Status badges

Description (last modified by Sébastien Labbé)

As reported in 8.7.beta0 on sage-release:

sage -t --long --optional=sage,pandoc src/sage/tests/cmdline.py

yields:

**********************************************************************
File "src/sage/tests/cmdline.py", line 820, in sage.tests.cmdline.test_executable
Failed example:
    print(open(output, 'r').read() == t)          # optional - pandoc
Expected:
    True
Got:
    False
**********************************************************************
1 item had failures:
   1 of 253 in sage.tests.cmdline.test_executable
    [252 tests, 1 failure, 41.02 s]

The reason is that:

sage: open(output, 'r').read()
'.. escape-backslashes\n.. default-role:: math\n\n\n::\n\n    sage: 1+1\n    2\n\n\n\n\n'
sage: t
'.. escape-backslashes\n.. default-role:: math\n\n\n::\n\n    sage: 1+1\n    2\n\n\n'

Change History (6)

comment:1 Changed 4 years ago by Sébastien Labbé

Cc: Thierry Monteil added

comment:2 Changed 4 years ago by Sébastien Labbé

Description: modified (diff)

comment:3 Changed 4 years ago by Sébastien Labbé

Description: modified (diff)

comment:4 Changed 4 years ago by Sébastien Labbé

Authors: Sébastien Labbé
Branch: u/slabbe/27172
Commit: f2579fd370039a4d8178d65d0cdfbd60eabda174
Status: newneeds_review

New commits:

f2579fd27172: fixing optional pandoc doctest

comment:5 Changed 4 years ago by Travis Scrimshaw

Reviewers: Travis Scrimshaw
Status: needs_reviewpositive_review

LGTM.

comment:6 Changed 4 years ago by Volker Braun

Branch: u/slabbe/27172f2579fd370039a4d8178d65d0cdfbd60eabda174
Resolution: fixed
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.