xinrong-databricks commented on a change in pull request #32611:
URL: https://github.com/apache/spark/pull/32611#discussion_r638132565
##########
File path: python/pyspark/pandas/tests/data_type_ops/test_num_ops.py
##########
@@ -42,7 +54,12 @@ def test_add(self):
self.assertRaises(TypeError, lambda: psser +
self.non_numeric_pssers["datetime"])
self.assertRaises(TypeError, lambda: psser +
self.non_numeric_pssers["date"])
self.assertRaises(TypeError, lambda: psser +
self.non_numeric_pssers["categorical"])
- self.assertRaises(TypeError, lambda: psser +
self.non_numeric_pssers["bool"])
+ self.assert_eq(
+ (psser + self.non_numeric_pssers["bool"]).sort_index(),
+ pser + self.non_numeric_psers["bool"],
+ )
+
+ self.assertRaises(TypeError, lambda: self.float_psser + True)
Review comment:
Goot catch! It is out of `with option_context` now.
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]