Github user holdenk commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14517#discussion_r74983999
  
    --- Diff: python/pyspark/sql/readwriter.py ---
    @@ -733,11 +774,19 @@ def _test():
         import os
         import tempfile
         import py4j
    +    import shutil
         from pyspark.context import SparkContext
         from pyspark.sql import SparkSession, Row
         import pyspark.sql.readwriter
     
    -    os.chdir(os.environ["SPARK_HOME"])
    +    spark_home = os.path.realpath(os.environ["SPARK_HOME"])
    +
    +    test_dir = tempfile.mkdtemp()
    +    os.chdir(test_dir)
    +
    +    path = lambda x, y, z: os.path.join(x, y)
    +
    +    shutil.copytree(path(spark_home, 'python', 'test_support'), 
path(test_dir, 'python', 'test_support'))
    --- End diff --
    
    pep8 is saying this line is too long (over 100 chars) so its failing the 
style tests. You can run the style tests locally with `./dev/lint-python` as 
well for a faster turn around than Jenkins :)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to