Skip to content

Commit ab9a2e1

Browse files
Update rdd pipe tests for checkCode
(rather than mode)
1 parent eb4801c commit ab9a2e1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

python/pyspark/tests.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -879,13 +879,12 @@ def test_pipe_functions(self):
879879
rdd = self.sc.parallelize(data)
880880
with QuietTest(self.sc):
881881
self.assertEqual([], rdd.pipe('cc').collect())
882-
self.assertRaises(Py4JJavaError, rdd.pipe('cc', mode='strict').collect)
882+
self.assertRaises(Py4JJavaError, rdd.pipe('cc', checkCode=True).collect)
883883
result = rdd.pipe('cat').collect()
884884
result.sort()
885885
[self.assertEqual(x, y) for x, y in zip(data, result)]
886-
self.assertRaises(Py4JJavaError, rdd.pipe('grep 4', mode='strict').collect)
886+
self.assertRaises(Py4JJavaError, rdd.pipe('grep 4', checkCode=True).collect)
887887
self.assertEqual([], rdd.pipe('grep 4').collect())
888-
self.assertEqual([], rdd.pipe('grep 4', mode='grep').collect())
889888

890889

891890
class ProfilerTests(PySparkTestCase):

0 commit comments

Comments
 (0)