Commit 0eb133f
committed
Fix subprocess encoding for Python 3.3/3.4 tests
The issue was that Python 3.3/3.4 don't have subprocess.run() so they
use the legacy Popen path, but unlike Python 2.7, they need bytes for
stdin, not strings.
Fixed by checking Python version separately from subprocess.run feature
detection and encoding strings to bytes for Python 3.x versions.1 parent 89b4031 commit 0eb133f
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
0 commit comments