Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
trac 28805: tag some tests "# py2"
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpalmieri committed Nov 26, 2019
1 parent a028f89 commit e234ff5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/sage/tests/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,8 +826,8 @@ def test_executable(args, input="", timeout=100.0, **kwds):
sage: input = tmp_filename(ext='.rst')
sage: with open(input, 'w') as F:
....: _ = F.write(s)
sage: (out, err, ret) = test_executable(["sage", "--rst2txt", input])
sage: print(out)
sage: (out, err, ret) = test_executable(["sage", "--rst2txt", input]) # py2
sage: print(out) # py2
{{{id=0|
2^10
///
Expand All @@ -841,7 +841,7 @@ def test_executable(args, input="", timeout=100.0, **kwds):
}}}
sage: err # py2
''
sage: ret
sage: ret # py2
0
Test ``sage --rst2txt file.rst file.txt`` on a ReST file::
Expand All @@ -851,9 +851,9 @@ def test_executable(args, input="", timeout=100.0, **kwds):
sage: output = tmp_filename(ext='.txt')
sage: with open(input, 'w') as F:
....: _ = F.write(s)
sage: test_executable(["sage", "--rst2txt", input, output])
sage: test_executable(["sage", "--rst2txt", input, output]) # py2
('', ..., 0)
sage: print(open(output, 'r').read())
sage: print(open(output, 'r').read()) # py2
{{{id=0|
2^10
///
Expand Down

0 comments on commit e234ff5

Please sign in to comment.