aboutsummaryrefslogtreecommitdiff
path: root/python/pyspark/tests.py
diff options
context:
space:
mode:
authorHolden Karau <holden@pigscanfly.ca>2015-05-21 14:08:57 -0700
committerJosh Rosen <joshrosen@databricks.com>2015-05-21 14:08:57 -0700
commit6b18cdc1b1284b1d48d637d06a1e64829aeb6202 (patch)
treef058692f7e69162e48725eece288e4d65336e839 /python/pyspark/tests.py
parent3d0cccc85850ca9c79f3e5ff7395bd04d212b063 (diff)
downloadspark-6b18cdc1b1284b1d48d637d06a1e64829aeb6202.tar.gz
spark-6b18cdc1b1284b1d48d637d06a1e64829aeb6202.tar.bz2
spark-6b18cdc1b1284b1d48d637d06a1e64829aeb6202.zip
[SPARK-7711] Add a startTime property to match the corresponding one in Scala
Author: Holden Karau <holden@pigscanfly.ca> Closes #6275 from holdenk/SPARK-771-startTime-is-missing-from-pyspark and squashes the following commits: 06662dc [Holden Karau] add mising blank line for style checks 7a87410 [Holden Karau] add back missing newline 7a7876b [Holden Karau] Add a startTime property to match the corresponding one in the Scala SparkContext
Diffstat (limited to 'python/pyspark/tests.py')
-rw-r--r--python/pyspark/tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/pyspark/tests.py b/python/pyspark/tests.py
index d8e319994c..f9fb37f7fc 100644
--- a/python/pyspark/tests.py
+++ b/python/pyspark/tests.py
@@ -1809,6 +1809,10 @@ class ContextTests(unittest.TestCase):
sc.stop()
+ def test_startTime(self):
+ with SparkContext() as sc:
+ self.assertGreater(sc.startTime, 0)
+
@unittest.skipIf(not _have_scipy, "SciPy not installed")
class SciPyTests(PySparkTestCase):