Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,20 @@

from __future__ import annotations

import warnings

import numpy as np
import pandas as pd
import pyarrow as pa
import pytest

import bigframes._config

# Make sure SettingWithCopyWarning is ignored if it exists.
# It was removed in pandas 3.0.
if hasattr(pd.errors, "SettingWithCopyWarning"):
warnings.simplefilter("ignore", pd.errors.SettingWithCopyWarning)


@pytest.fixture(scope="session")
def polars_session_or_bpd():
Expand Down
2 changes: 0 additions & 2 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[pytest]
doctest_optionflags = NORMALIZE_WHITESPACE
filterwarnings =
ignore::pandas.errors.SettingWithCopyWarning
addopts = "--import-mode=importlib"