zhengruifeng commented on code in PR #46853:
URL: https://github.com/apache/spark/pull/46853#discussion_r1628980151


##########
python/pyspark/sql/tests/pandas/test_pandas_grouped_map_with_state.py:
##########
@@ -141,7 +138,7 @@ def func(key, pdf_iter, state):
             yield pd.DataFrame({"key": [], "countAsString": []})
 
         def check_results(batch_df, _):
-            self.assertTrue(len(set(batch_df.sort("key").collect())) == 0)
+            assert len(set(batch_df.sort("key").collect())) == 0

Review Comment:
   just curious: does `self.assertTrue` -> `assert` fix these tests?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to