File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 18
18
import os
19
19
import sys
20
20
21
- """
22
- These are various tests to test the Python container image.
23
- This file will be distributed via --py-files in the e2e tests.
24
- """
21
+
25
22
def version_check (python_env , major_python_version ):
23
+ """
24
+ These are various tests to test the Python container image.
25
+ This file will be distributed via --py-files in the e2e tests.
26
+ """
26
27
env_version = os .environ .get ('PYSPARK_PYTHON' )
27
- print ("Python runtime version check is: " + \
28
+ print ("Python runtime version check is: " +
28
29
str (sys .version_info [0 ] == major_python_version ))
29
30
30
- print ("Python environment version check is: " + \
31
+ print ("Python environment version check is: " +
31
32
str (env_version == python_env ))
Original file line number Diff line number Diff line change 33
33
34
34
from py_container_checks import version_check
35
35
# Begin of Python container checks
36
- version_check (sys .argv [1 ], 2 if sys .argv [1 ]== "python" else 3 )
36
+ version_check (sys .argv [1 ], 2 if sys .argv [1 ] == "python" else 3 )
37
37
38
38
spark .stop ()
You can’t perform that action at this time.
0 commit comments