We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3344a21 commit 491d3fcCopy full SHA for 491d3fc
python/pyspark/tests.py
@@ -878,7 +878,7 @@ def test_pipe_functions(self):
878
data = ['1', '2', '3']
879
rdd = self.sc.parallelize(data)
880
with QuietTest(self.sc):
881
- self.assertRaises(Exception, rdd.pipe('cc').collect())
+ self.assertRaises(Py4JJavaError, rdd.pipe('cc').collect)
882
result = rdd.pipe('cat').collect().sort()
883
[self.assertEqual(x, y) for x, y in zip(data, result)]
884
0 commit comments