We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4df3428 + d2e8cb4 commit 3afa4f4Copy full SHA for 3afa4f4
conftest.py
@@ -14,13 +14,20 @@
14
15
from __future__ import annotations
16
17
+import warnings
18
+
19
import numpy as np
20
import pandas as pd
21
import pyarrow as pa
22
import pytest
23
24
import bigframes._config
25
26
+# Make sure SettingWithCopyWarning is ignored if it exists.
27
+# It was removed in pandas 3.0.
28
+if hasattr(pd.errors, "SettingWithCopyWarning"):
29
+ warnings.simplefilter("ignore", pd.errors.SettingWithCopyWarning)
30
31
32
@pytest.fixture(scope="session")
33
def polars_session_or_bpd():
pytest.ini
@@ -1,5 +1,3 @@
1
[pytest]
2
doctest_optionflags = NORMALIZE_WHITESPACE
3
-filterwarnings =
4
- ignore::pandas.errors.SettingWithCopyWarning
5
addopts = "--import-mode=importlib"
0 commit comments