diff options
author | MechCoder <manojkumarsivaraj334@gmail.com> | 2015-07-15 08:25:53 -0700 |
---|---|---|
committer | Davies Liu <davies.liu@gmail.com> | 2015-07-15 08:25:53 -0700 |
commit | 20bb10f8644a92a57496b5df639008832b30e34d (patch) | |
tree | 9b455807bd130409773697ab566feb05c29f729b /python/pyspark/tests.py | |
parent | adb33d3665770daf2ccb8915d19e198be9dc3b47 (diff) | |
download | spark-20bb10f8644a92a57496b5df639008832b30e34d.tar.gz spark-20bb10f8644a92a57496b5df639008832b30e34d.tar.bz2 spark-20bb10f8644a92a57496b5df639008832b30e34d.zip |
[SPARK-8706] [PYSPARK] [PROJECT INFRA] Add pylint checks to PySpark
This adds Pylint checks to PySpark.
For now this lazy installs using easy_install to /dev/pylint (similar to the pep8 script).
We still need to figure out what rules to be allowed.
Author: MechCoder <manojkumarsivaraj334@gmail.com>
Closes #7241 from MechCoder/pylint and squashes the following commits:
2fc7291 [MechCoder] Remove pylint test fail
6d883a2 [MechCoder] Silence warnings and make pylint tests fail to check if it works in jenkins
f3a5e17 [MechCoder] undefined-variable
ca8b749 [MechCoder] Minor changes
71629f8 [MechCoder] remove trailing whitespace
8498ff9 [MechCoder] Remove blacklisted arguments and pointless statements check
1dbd094 [MechCoder] Disable all checks for now
8b8aa8a [MechCoder] Add pylint configuration file
7871bb1 [MechCoder] [SPARK-8706] [PySpark] [Project infra] Add pylint checks to PySpark
Diffstat (limited to 'python/pyspark/tests.py')
-rw-r--r-- | python/pyspark/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/pyspark/tests.py b/python/pyspark/tests.py index c5c0add49d..2122501680 100644 --- a/python/pyspark/tests.py +++ b/python/pyspark/tests.py @@ -893,7 +893,8 @@ class RDDTests(ReusedPySparkTestCase): self.assertRaises(Py4JJavaError, rdd.pipe('cc', checkCode=True).collect) result = rdd.pipe('cat').collect() result.sort() - [self.assertEqual(x, y) for x, y in zip(data, result)] + for x, y in zip(data, result): + self.assertEqual(x, y) self.assertRaises(Py4JJavaError, rdd.pipe('grep 4', checkCode=True).collect) self.assertEqual([], rdd.pipe('grep 4').collect()) |