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

    https://github.com/apache/spark/pull/4278#discussion_r23810638
  
    --- Diff: python/pyspark/tests.py ---
    @@ -1032,6 +1033,15 @@ def test_aggregator(self):
             from pyspark.sql import Aggregator as Agg
             # self.assertEqual((0, '100'), tuple(g.agg(Agg.first(df.key), 
Agg.last(df.value)).first()))
     
    +    def test_help_command(self):
    +        # Regression test for SPARK-5464
    +        rdd = self.sc.parallelize(['{"foo":"bar"}', '{"foo":"baz"}'])
    +        df = self.sqlCtx.jsonRDD(rdd)
    +        # render_doc() reproduces the help() exception without printing 
output
    +        pydoc.render_doc(df)
    --- End diff --
    
    This is the case that threw an exception.  The other two cases below are 
just to improve our test-coverage, since those classes also have custom 
`__getattr__` methods.


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