Skip to content

Commit 36e78b1

Browse files
henryiiijamadden
authored andcommitted
tests: fix test failing on macOS
Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
1 parent c0e0398 commit 36e78b1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/sphinxcontrib/programoutput/tests/test_directive.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,9 @@ def test_bytes_prompt_with_unicode_output(self):
394394
'echo "U+2264 ≤ LESS-THAN OR EQUAL TO"',
395395
'U+2264 ≤ LESS-THAN OR EQUAL TO')
396396

397+
397398
@with_content("""\
398-
.. program-output:: echo -e "U+2264 ≤ LESS-THAN OR EQUAL TO\\n≤ line2\\n≤ line3"
399+
.. program-output:: python -c 'print("U+2264 ≤ LESS-THAN OR EQUAL TO\\n≤ line2\\n≤ line3")'
399400
:ellipsis: 2
400401
""")
401402
def test_unicode_output_with_ellipsis(self):
@@ -405,7 +406,7 @@ def test_unicode_output_with_ellipsis(self):
405406
)
406407
self.assert_cache(
407408
self.app,
408-
'echo -e "U+2264 ≤ LESS-THAN OR EQUAL TO\\n≤ line2\\n≤ line3"',
409+
f"{sys.executable} -c 'print(\"U+2264 ≤ LESS-THAN OR EQUAL TO\\n≤ line2\\n≤ line3\")'",
409410
'U+2264 \u2264 LESS-THAN OR EQUAL TO\n\u2264 line2\n\u2264 line3'
410411
)
411412

0 commit comments

Comments
 (0)