@@ -1,13 +1,24 @@
11diff --git a/src/sage/tests/cmdline.py b/src/sage/tests/cmdline.py
2−index bd6b76ab82..f8340a8c66 100644
2+index bd6b76ab82..ccf1203dec 100644
33--- a/src/sage/tests/cmdline.py
44+++ b/src/sage/tests/cmdline.py
5−@@ -872,7 +872,7 @@ def test_executable(args, input="", timeout=100.0, **kwds):
5+@@ -837,8 +837,6 @@ def test_executable(args, input="", timeout=100.0, **kwds):
6+ ///
7+ 4
8+ }}}
9+- sage: err # py2
10+- ''
11+ sage: ret
12+ 0
13+
14+@@ -871,8 +869,8 @@ def test_executable(args, input="", timeout=100.0, **kwds):
15+ sage: output = tmp_filename(ext='.sws')
616 sage: with open(input, 'w') as F:
717 ....: _ = F.write(s)
8− sage: test_executable(["sage", "--rst2sws", input, output]) # py2
18+- sage: test_executable(["sage", "--rst2sws", input, output]) # py2
919- ('', '', 0)
10−+ ('', '...', 0)
20++ sage: test_executable(["sage", "--rst2sws", input, output])[2] # py2
21++ 0
1122 sage: import tarfile # py2
1223 sage: f = tarfile.open(output, 'r') # py2
1324 sage: print(f.extractfile('sage_worksheet/worksheet.html').read()) # py2