Github user ueshin commented on a diff in the pull request:
https://github.com/apache/spark/pull/20682#discussion_r171191678
--- Diff: python/pyspark/mllib/tree.py ---
@@ -654,7 +654,7 @@ def _test():
(failure_count, test_count) = doctest.testmod(globs=globs,
optionflags=doctest.ELLIPSIS)
spark.stop()
if failure_count:
- exit(-1)
+ sys.exit(-1)
--- End diff --
need to import sys.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]