Github user yanboliang commented on a diff in the pull request:
    --- Diff: python/pyspark/ml/ ---
    @@ -311,19 +330,25 @@ def setParams(self, predictionCol="prediction", 
     if __name__ == "__main__":
         import doctest
    +    import tempfile
    +    import
         from pyspark.sql import SparkSession
    -    globs = globals().copy()
    +    globs =
         # The small batch size here ensures that we see multiple batches,
         # even in these small test examples:
         spark = SparkSession.builder\
             .appName("ml.evaluation tests")\
    -    sc = spark.sparkContext
    -    globs['sc'] = sc
         globs['spark'] = spark
    -    (failure_count, test_count) = doctest.testmod(
    -        globs=globs, optionflags=doctest.ELLIPSIS)
    -    spark.stop()
    -    if failure_count:
    -        exit(-1)
    --- End diff --
    Thanks for remind, added check ```failure_count```.

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to