File tree Expand file tree Collapse file tree
tests/_plugins/ui/_impl/tables Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -773,6 +773,20 @@ def test_get_field_types(self) -> None:
773773 ],
774774 ]
775775
776+ # pandas 3 emits Pandas4Warning here (select_dtypes(include=["object"])
777+ # also picks up the new "str" dtype, for back-compat with pandas 2).
778+ # Suppress by message so this filter is a no-op on pandas 2, where
779+ # neither the "str" dtype nor Pandas4Warning exists. Necessary because
780+ # xdist's unserialize_warning_message fails to import pandas in the
781+ # controller on CI and the receiver thread treats that as a fatal
782+ # BaseException, killing the worker and cascading into hundreds of
783+ # fake failures.
784+ # TODO: fix xdist upstream — workermanage.py:462 should not tear down
785+ # the session when warning deserialization fails; wrap just the
786+ # unserialize call and fall back to a generic Warning.
787+ @pytest .mark .filterwarnings (
788+ "ignore:For backward compatibility, 'str' dtypes are included"
789+ )
776790 def test_get_field_types_nullables (self ) -> None :
777791 data = pd .DataFrame (
778792 {
You can’t perform that action at this time.
0 commit comments