HyukjinKwon commented on a change in pull request #30044:
URL: https://github.com/apache/spark/pull/30044#discussion_r505143218



##########
File path: core/src/main/scala/org/apache/spark/TestUtils.scala
##########
@@ -255,6 +255,19 @@ private[spark] object TestUtils {
     attempt.isSuccess && attempt.get == 0
   }
 
+  def isPythonVersionAtLeast38(): Boolean = {
+    val attempt = if (Utils.isWindows) {
+      Try(Process(Seq("cmd.exe", "/C", "python3 --version"))
+        .run(ProcessLogger(_ => ()))

Review comment:
       Why do we don't need to check the output from Python execution in the 
Window's case?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to