Skip to content

Commit c0ede8b

Browse files
TEST-#7659: Ignore ray.init() warning about accelerators environment variable. (#7660)
Resolves #7659 --------- Signed-off-by: sfc-gh-mvashishtha <mahesh.vashishtha@snowflake.com>
1 parent 5ed69b5 commit c0ede8b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

modin/tests/pandas/test_groupby.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@
7878
pytest.mark.filterwarnings(default_to_pandas_ignore_string),
7979
# TO MAKE SURE ALL FUTUREWARNINGS ARE CONSIDERED
8080
pytest.mark.filterwarnings("error::FutureWarning"),
81+
# ... except for this expected Ray warning due to https://github.com/ray-project/ray/issues/54868
82+
pytest.mark.filterwarnings(
83+
"ignore:.*In future versions of Ray, Ray will no longer override accelerator visible devices env var if num_gpus=0 or num_gpus=None:FutureWarning"
84+
),
8185
# IGNORE FUTUREWARNINGS MARKS TO CLEANUP OUTPUT
8286
pytest.mark.filterwarnings(
8387
"ignore:DataFrame.groupby with axis=1 is deprecated:FutureWarning"

modin/tests/pandas/test_rolling.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
pytest.mark.filterwarnings(default_to_pandas_ignore_string),
4141
# TO MAKE SURE ALL FUTUREWARNINGS ARE CONSIDERED
4242
pytest.mark.filterwarnings("error::FutureWarning"),
43+
# ... except for this expected Ray warning due to https://github.com/ray-project/ray/issues/54868
44+
pytest.mark.filterwarnings(
45+
"ignore:.*In future versions of Ray, Ray will no longer override accelerator visible devices env var if num_gpus=0 or num_gpus=None:FutureWarning"
46+
),
4347
# IGNORE FUTUREWARNINGS MARKS TO CLEANUP OUTPUT
4448
pytest.mark.filterwarnings(
4549
"ignore:Support for axis=1 in DataFrame.rolling is deprecated:FutureWarning"

0 commit comments

Comments
 (0)