Skip to content

Commit ca9d033

Browse files
committed
INTPYTHON-556 Fix expected exception in polars test
1 parent fe37121 commit ca9d033

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bindings/python/test/test_polars.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,17 +255,17 @@ def test_exceptions_for_unsupported_polar_types(self):
255255
Tracks future changes in any packages.
256256
"""
257257

258-
# Series: PyMongoError does not support
258+
# Series: PyMongoError does not support.
259259
with self.assertRaises(ValueError) as exc:
260260
pls = pl.Series(values=range(2))
261261
write(self.coll, pls)
262262
self.assertTrue("Invalid tabular data object" in exc.exception.args[0])
263263

264-
# Polars has an Object Type, similar in concept to Pandas
264+
# Polars has an Object Type, similar in concept to Pandas. PyMongoError does not support them.
265265
class MyObject:
266266
pass
267267

268-
with self.assertRaises(pl.exceptions.PanicException) as exc:
268+
with self.assertRaises(ValueError) as exc:
269269
df_in = pl.DataFrame(data=[MyObject()] * 2)
270270
write(self.coll, df_in)
271271

0 commit comments

Comments
 (0)