A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
fix: warning in test explodes xdist (#9285)
Akshay Agrawal26052dcdb01d
diff --git a/tests/_plugins/ui/_impl/tables/test_pandas_table.py b/tests/_plugins/ui/_impl/tables/test_pandas_table.pyindex b183a6d6b5..e2beb249da 100644--- a/tests/_plugins/ui/_impl/tables/test_pandas_table.py+++ b/tests/_plugins/ui/_impl/tables/test_pandas_table.py@@ -773,6 +773,20 @@ class TestPandasTableManager(unittest.TestCase):],]+ # pandas 3 emits Pandas4Warning here (select_dtypes(include=["object"])+ # also picks up the new "str" dtype, for back-compat with pandas 2).+ # Suppress by message so this filter is a no-op on pandas 2, where+ # neither the "str" dtype nor Pandas4Warning exists. Necessary because+ # xdist's unserialize_warning_message fails to import pandas in the+ # controller on CI and the receiver thread treats that as a fatal+ # BaseException, killing the worker and cascading into hundreds of+ # fake failures.+ # TODO: fix xdist upstream — workermanage.py:462 should not tear down+ # the session when warning deserialization fails; wrap just the+ # unserialize call and fall back to a generic Warning.+ @pytest.mark.filterwarnings(+ "ignore:For backward compatibility, 'str' dtypes are included"+ )def test_get_field_types_nullables(self) -> None:data = pd.DataFrame({