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

    https://github.com/apache/spark/pull/15666#discussion_r143019603
  
    --- Diff: python/pyspark/tests.py ---
    @@ -435,6 +436,19 @@ def test_add_file_locally(self):
             with open(download_path) as test_file:
                 self.assertEqual("Hello World!\n", test_file.readline())
     
    +    def test_add_jar(self):
    +        jvm = self.sc._jvm
    +        # We shouldn't be able to load anything from the package before it 
is added
    +        self.assertFalse(isinstance(jvm.pysparktests.DummyClass, 
JavaClass))
    +        # Generate and compile the test jar
    +        destDir = os.path.join(SPARK_HOME, "python/test_support/jar")
    --- End diff --
    
    I'd remove this directory too.


---

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

Reply via email to