srowen commented on a change in pull request #23419: [SPARK-26507][CORE] Fix 
core tests for Java 11
URL: https://github.com/apache/spark/pull/23419#discussion_r244555416
 
 

 ##########
 File path: 
launcher/src/test/java/org/apache/spark/launcher/SparkSubmitCommandBuilderSuite.java
 ##########
 @@ -158,7 +158,7 @@ public void testPySparkLauncher() throws Exception {
 
     Map<String, String> env = new HashMap<>();
     List<String> cmd = buildCommand(sparkSubmitArgs, env);
-    assertEquals("python", cmd.get(cmd.size() - 1));
+    assertTrue(Arrays.asList("python", "python2", 
"python3").contains(cmd.get(cmd.size() - 1)));
 
 Review comment:
   Also not strictly related, but something I caught while debugging. The 
Pyspark python interpreter might legitimately be set to a few other values.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to