Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/sphinxcontrib/programoutput/tests/test_directive.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,9 @@ def test_bytes_prompt_with_unicode_output(self):
'echo "U+2264 ≤ LESS-THAN OR EQUAL TO"',
'U+2264 ≤ LESS-THAN OR EQUAL TO')


@with_content("""\
.. program-output:: echo -e "U+2264 ≤ LESS-THAN OR EQUAL TO\\n≤ line2\\n≤ line3"
.. program-output:: python -c 'print("U+2264 ≤ LESS-THAN OR EQUAL TO\\n≤ line2\\n≤ line3")'
:ellipsis: 2
""")
def test_unicode_output_with_ellipsis(self):
Expand All @@ -405,7 +406,7 @@ def test_unicode_output_with_ellipsis(self):
)
self.assert_cache(
self.app,
'echo -e "U+2264 ≤ LESS-THAN OR EQUAL TO\\n≤ line2\\n≤ line3"',
f"{sys.executable} -c 'print(\"U+2264 ≤ LESS-THAN OR EQUAL TO\\n≤ line2\\n≤ line3\")'",
'U+2264 \u2264 LESS-THAN OR EQUAL TO\n\u2264 line2\n\u2264 line3'
)

Expand Down