Skip to content

Commit 5c46c49

Browse files
TestCommand: Make more use of universal_newlines
To always have string output from subprocesses in Python 2/3
1 parent 1e4e911 commit 5c46c49

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/test_nodely_bin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ def test_check_output(
136136
node_package_command_output_regex):
137137
command = Command(node_package_command)
138138
assert node_package_command_output_regex.match(
139-
command.check_output(node_package_command_args))
139+
command.check_output(
140+
node_package_command_args, universal_newlines=True))
140141

141142
out, err = capfd.readouterr()
142143
assert not out and not err
@@ -159,7 +160,7 @@ def test__call__(
159160
node_package_command_output_regex):
160161
command = Command(node_package_command)
161162
assert node_package_command_output_regex.match(
162-
command(*node_package_command_args))
163+
command(*node_package_command_args, universal_newlines=True))
163164

164165
out, err = capfd.readouterr()
165166
assert not out and not err

0 commit comments

Comments
 (0)