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



##########
File path: python/pyspark/tests/test_rdd.py
##########
@@ -764,7 +764,7 @@ def test_overwritten_global_func(self):
         # Regression test for SPARK-27000
         global global_func
         self.assertEqual(self.sc.parallelize([1]).map(lambda _: 
global_func()).first(), "Hi")
-        global_func = lambda: "Yeah"
+        global_func = lambda: "Yeah"  # noqa: E731

Review comment:
       Oh yeah. I didn't change just because I was just worried that changing 
this to `def` would affect what this targets to test (it has to explicitly 
assign the function to the global variable).




-- 
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.

To unsubscribe, e-mail: [email protected]

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