Github user GregBowyer commented on a diff in the pull request:
https://github.com/apache/spark/pull/14517#discussion_r75011462
--- 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 --
Thanks for the note, I was getting annoyed at not knowing where to find the
tools for such things.
---
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]