Skip to content
  • Matei Zaharia's avatar
    615fb649
    Fix some other Python tests due to initializing JVM in a different way · 615fb649
    Matei Zaharia authored
    The test in context.py created two different instances of the
    SparkContext class by copying "globals", so that some tests can have a
    global "sc" object and others can try initializing their own contexts.
    This led to two JVM gateways being created since SparkConf also looked
    at pyspark.context.SparkContext to get the JVM.
    615fb649
    Fix some other Python tests due to initializing JVM in a different way
    Matei Zaharia authored
    The test in context.py created two different instances of the
    SparkContext class by copying "globals", so that some tests can have a
    global "sc" object and others can try initializing their own contexts.
    This led to two JVM gateways being created since SparkConf also looked
    at pyspark.context.SparkContext to get the JVM.
Loading