Codebase list python-procrunner / 97a0a4a
make test portable Markus Gerstel 5 years ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
00 from __future__ import absolute_import, division, print_function
11
2 import os
3 import sys
4
25 import procrunner
3 import os
46
57 def test_simple_command_invocation():
68 if os.name == 'nt':
1517 assert result['stderr'] == b''
1618
1719 def test_input_encoding():
18 command = ['python', '-c', 'import sys; sys.stdout.write("".join(chr(x) for x in '
20 command = [sys.executable, '-c', 'import sys; sys.stdout.write("".join(chr(x) for x in '
1921 '(0x74,0x65,0x73,0x74,0xa0,0x50,0x73,0x74,0x72,0x69,0x6e,0x67,0x0a)'
2022 '))']
2123 result = procrunner.run(command)