Skip to content

Commit bb37393

Browse files
committed
!fixup tests: Add binary console test
1 parent f2ea5bf commit bb37393

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_command_runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def timestamp(date):
7777
# This is a dummy test on windows
7878
PRINT_BINARY_FILE_CMD = "type C:\\Windows\\System32\\cmd.exe"
7979
else:
80-
ENCODING = "utf-8"
80+
ENCODING = "utf-8"-
8181
PING_CMD = ["ping", "-c", "4", "127.0.0.1"]
8282
PING_CMD_10S = ["ping", "-c", "10", "127.0.0.1"]
8383
PING_CMD_REDIR = "ping -c 4 127.0.0.1 1>&2"
@@ -170,7 +170,7 @@ def test_direct_binary_output_to_stdout():
170170
Without encoding disabled, we should have binary output
171171
"""
172172
for method in methods:
173-
exit_code, output = command_runner(PRINT_BINARY_FILE_CMD, encoding=False, method=method)
173+
exit_code, output = command_runner(PRINT_BINARY_FILE_CMD, encoding=False, shell=True, method=method)
174174
print(output)
175175
assert (
176176
exit_code == 0

0 commit comments

Comments
 (0)