Github user holdenk commented on a diff in the pull request:
https://github.com/apache/spark/pull/14517#discussion_r75199740
--- 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 --
Sure thing - I'm always happy to help people get up to speed with
contributing to PySpark so feel free to reach out to me if you get stuck with
something similar.
---
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]