viirya commented on a change in pull request #35150:
URL: https://github.com/apache/spark/pull/35150#discussion_r786498312
##########
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:
This keeps lambda because it is simple for test?
--
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]