diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2018-11-20 12:05:20 +0100 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2018-11-20 12:05:20 +0100 |
commit | 51e238c2ed02f191aac6e2dbd660cfbd949c73d0 (patch) | |
tree | 4c03ff4755bbe76614424622af3b605bb1d31b16 /tools/run_tests | |
parent | 69f98c1a0faebe769429ed93f9a6da860116cb33 (diff) |
run_tests.py cleanup: nits in PythonLanguage
Diffstat (limited to 'tools/run_tests')
-rwxr-xr-x | tools/run_tests/run_tests.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py index a1f2aaab2f..f00355bafc 100755 --- a/tools/run_tests/run_tests.py +++ b/tools/run_tests/run_tests.py @@ -756,9 +756,10 @@ class PythonLanguage(object): def dockerfile_dir(self): return 'tools/dockerfile/test/python_%s_%s' % ( - self.python_manager_name(), _docker_arch_suffix(self.args.arch)) + self._python_manager_name(), _docker_arch_suffix(self.args.arch)) - def python_manager_name(self): + def _python_manager_name(self): + """Choose the docker image to use based on python version.""" if self.args.compiler in [ 'python2.7', 'python3.5', 'python3.6', 'python3.7' ]: @@ -771,6 +772,7 @@ class PythonLanguage(object): return 'stretch_3.7' def _get_pythons(self, args): + """Get python runtimes to test with, based on current platform, architecture, compiler etc.""" if args.arch == 'x86': bits = '32' else: |