diff options
author | Radostin Stoyanov <rstoyanov1@gmail.com> | 2019-07-30 00:07:10 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2019-09-07 15:59:56 +0300 |
commit | 4c1ee3e227045fc1dc07b10ac7a538a68299693b (patch) | |
tree | 8ae3ce79bf9d1f8a9ba440feaf42feaf38401fda /soccr | |
parent | 5aa72e723707e2bd7e8ed9841c2ad392781d066d (diff) |
test/other: Resolve Py3 compatibility issues
When Python 2 is not installed we assume that /usr/bin/python refers to
version 3 of Python and the executable /usr/bin/python2 does not exist.
This commit also resolves a compatibility issue with Popen where in
Py2 file descriptors will be inherited by the child process and in
Py3 they will be closed by default.
Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
Diffstat (limited to 'soccr')
-rw-r--r-- | soccr/test/run.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/soccr/test/run.py b/soccr/test/run.py index 446584a71..1ffe58a58 100644 --- a/soccr/test/run.py +++ b/soccr/test/run.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python import sys, os import hashlib |