Skip to content

Commit 3344a21

Browse files
wrap assertRaises with QuietTest
1 parent 3ab8c7a commit 3344a21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/pyspark/tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,8 @@ def test_sortByKey_uses_all_partitions_not_only_first_and_last(self):
877877
def test_pipe_functions(self):
878878
data = ['1', '2', '3']
879879
rdd = self.sc.parallelize(data)
880-
self.assertRaises(Exception, rdd.pipe('cc').collect())
880+
with QuietTest(self.sc):
881+
self.assertRaises(Exception, rdd.pipe('cc').collect())
881882
result = rdd.pipe('cat').collect().sort()
882883
[self.assertEqual(x, y) for x, y in zip(data, result)]
883884

0 commit comments

Comments
 (0)