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

    https://github.com/apache/spark/pull/16536#discussion_r98084776
  
    --- Diff: python/pyspark/sql/tests.py ---
    @@ -476,6 +476,19 @@ def test_udf_defers_judf_initalization(self):
                 "judf should be initialized after UDF has been called."
             )
     
    +    @unittest.skipIf(sys.version_info < (3, 3), "Unittest < 3.3 doesn't 
support mocking")
    --- End diff --
    
    @holdenk I believe that for a full test `udf` would have to create 
`SparkContext`. But mock is cheap.


---
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