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

    https://github.com/apache/spark/pull/2335#discussion_r17314712
  
    --- Diff: python/pyspark/tests.py ---
    @@ -1254,6 +1254,35 @@ def test_single_script_on_cluster(self):
             self.assertIn("[2, 4, 6]", out)
     
     
    +class ContextStopTests(unittest.TestCase):
    +
    +    def test_stop(self):
    +        sc = SparkContext()
    +        self.assertNotEqual(SparkContext._active_spark_context, None)
    +        sc.stop()
    +        self.assertEqual(SparkContext._active_spark_context, None)
    --- End diff --
    
    Yeah, I know :( .  Unfortunately, Python 2.6 is still the default Python 
version on a lot of Linux distributions, so we've been trying to maintain 
backwards-compatibility in order to ensure a good out-of-the-box experience for 
those users.


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