Skip to content

Commit 52610e3

Browse files
committed
Fixed test
1 parent ac0270a commit 52610e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/pyspark/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,9 +547,9 @@ def test_get_local_property(self):
547547
"""Verify that local properties set on the driver are available in TaskContext."""
548548
self.sc.setLocalProperty("testkey", "testvalue")
549549
rdd = self.sc.parallelize(range(1), 1)
550-
prop1 = rdd1.map(lambda x: TaskContext.get().getLocalProperty("testkey")).collect()[0]
550+
prop1 = rdd.map(lambda x: TaskContext.get().getLocalProperty("testkey")).collect()[0]
551551
self.assertEqual(prop1, "testkey")
552-
prop2 = rdd1.map(lambda x: TaskContext.get().getLocalProperty("otherkey")).collect()[0]
552+
prop2 = rdd.map(lambda x: TaskContext.get().getLocalProperty("otherkey")).collect()[0]
553553
self.assertTrue(prop2 is None)
554554

555555
class RDDTests(ReusedPySparkTestCase):

0 commit comments

Comments
 (0)