Skip to content

Commit 92f7268

Browse files
committed
remove py27 support for tests
1 parent d417113 commit 92f7268

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

python/run-tests.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,15 @@ def run_individual_python_test(target_dir, test_name, pyspark_python):
160160

161161

162162
def get_default_python_executables():
163-
python_execs = [x for x in ["python2.7", "python3.6", "pypy"] if which(x)]
164-
if "python2.7" not in python_execs:
165-
LOGGER.warning("Not testing against `python2.7` because it could not be found; falling"
166-
" back to `python` instead")
167-
python_execs.insert(0, "python")
163+
python_execs = [x for x in ["python3.6", "pypy"] if which(x)]
164+
if "python3.6" not in python_execs:
165+
if which('python'):
166+
LOGGER.warning("Not testing against `python3.6` because it could not be found; falling"
167+
" back to `python` instead")
168+
python_execs.insert(0, "python")
169+
else:
170+
LOGGER.error("No python executable found! Exiting!")
171+
os._exit(1)
168172
return python_execs
169173

170174

0 commit comments

Comments
 (0)