Skip to content

Commit 2e854a8

Browse files
committed
improve tests
1 parent 4af4b35 commit 2e854a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/ml/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ def test_rformula_string_indexer_order_type(self):
549549
observed = transformedDF.select("features").collect()
550550
expected = [[1.0, 0.0], [2.0, 1.0], [0.0, 0.0]]
551551
for i in range(0, len(expected)):
552-
self.assertTrue((observed[i]["features"].toArray() == expected[i]).all())
552+
self.assertTrue(all(observed[i]["features"].toArray() == expected[i]))
553553

554554

555555
class HasInducedError(Params):

0 commit comments

Comments
 (0)