make test portable
Markus Gerstel
5 years ago
0 | 0 | from __future__ import absolute_import, division, print_function |
1 | 1 | |
2 | import os | |
3 | import sys | |
4 | ||
2 | 5 | import procrunner |
3 | import os | |
4 | 6 | |
5 | 7 | def test_simple_command_invocation(): |
6 | 8 | if os.name == 'nt': |
15 | 17 | assert result['stderr'] == b'' |
16 | 18 | |
17 | 19 | 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 ' | |
19 | 21 | '(0x74,0x65,0x73,0x74,0xa0,0x50,0x73,0x74,0x72,0x69,0x6e,0x67,0x0a)' |
20 | 22 | '))'] |
21 | 23 | result = procrunner.run(command) |