Skip to content

Commit 15d999b

Browse files
committed
pep8 fixes
1 parent 25e9867 commit 15d999b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

python/pyspark/java_gateway.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import socket
2828
import platform
2929
from subprocess import Popen, PIPE
30-
from threading import Thread
30+
from threading import Thread
3131

3232

3333
if sys.version >= '3':

python/run-tests.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,21 @@ def run_generic_test(test_name, pyspark_python, launch_cmd):
113113
per_test_output.close()
114114
LOGGER.info("Finished test(%s): %s (%is)", pyspark_python, test_name, duration)
115115

116+
116117
def run_standalone_python_test(test_name, pyspark_python):
117118
"""
118119
Runs a standalone python test. This verifies PySpark launch behaviour when starting the JVM from
119120
Python side instead of JVM starting Python.
120121
"""
121-
launch_cmd=pyspark_python
122-
run_generic_test(test_name, pyspark_python, launch_cmd)
122+
run_generic_test(test_name, pyspark_python, launch_cmd=pyspark_python)
123+
123124

124125
def run_individual_python_test(test_name, pyspark_python):
125126
"""Run a Python test launching the JVM first."""
126127
launch_cmd = os.path.join(SPARK_HOME, "bin/pyspark")
127128
run_generic_test(test_name, pyspark_python, launch_cmd)
128129

130+
129131
def get_default_python_executables():
130132
python_execs = [x for x in ["python2.6", "python3.4", "pypy"] if which(x)]
131133
if "python2.6" not in python_execs:

0 commit comments

Comments
 (0)