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

    https://github.com/apache/spark/pull/455#discussion_r11919136
  
    --- Diff: python/pyspark/context.py ---
    @@ -467,8 +555,9 @@ def _test():
         globs = globals().copy()
         globs['sc'] = SparkContext('local[4]', 'PythonTest', batchSize=2)
         globs['tempdir'] = tempfile.mkdtemp()
    +    
globs['sc']._jvm.WriteInputFormatTestDataGenerator.generateData(globs['tempdir'],
 globs['sc']._jsc)
         atexit.register(lambda: shutil.rmtree(globs['tempdir']))
    -    (failure_count, test_count) = doctest.testmod(globs=globs, 
optionflags=doctest.ELLIPSIS)
    +    (failure_count, test_count) = doctest.testmod(globs=globs)
    --- End diff --
    
    Ah, actually you *did* remove the ellipsis option, right here! You need to 
add it back for other tests to work.
    
    BTW you can run just the Python tests locally by doing sbt 
assembly/assembly and then python/run-tests. You can also run pyspark 
context.py to run just the tests in that file. It's much faster than running 
through the whole test suite.


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

Reply via email to