You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/01/18 08:10:45 UTC
[GitHub] [spark] viirya commented on a change in pull request #35150: [SPARK-37850][PYTHON][INFRA] Enable flake's E731 rule in PySpark
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org