Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-azhan committed Aug 28, 2024
1 parent d8d26cb commit 5ee91c3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/integ/modin/types/test_timedelta.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
# Copyright (c) 2012-2024 Snowflake Computing Inc. All rights reserved.
#
import datetime
import logging

import modin.pandas as pd
import pandas as native_pd
import pytest

from snowflake.snowpark.modin.plugin._internal.snowpark_pandas_types import (
TIMEDELTA_WARNING_MESSAGE,
)
from tests.integ.modin.sql_counter import sql_count_checker
from tests.integ.modin.utils import (
assert_series_equal,
Expand All @@ -21,13 +17,11 @@


@sql_count_checker(query_count=1)
def test_create_timedelta_column_from_pandas_timedelta(caplog):
def test_create_timedelta_column_from_pandas_timedelta():
pandas_df = native_pd.DataFrame(
{"timedelta_column": [native_pd.Timedelta(nanoseconds=1)], "int_column": [3]}
)
with caplog.at_level(logging.DEBUG):
snow_df = pd.DataFrame(pandas_df)
assert TIMEDELTA_WARNING_MESSAGE in caplog.text
snow_df = pd.DataFrame(pandas_df)
eval_snowpark_pandas_result(snow_df, pandas_df, lambda df: df)


Expand Down

0 comments on commit 5ee91c3

Please sign in to comment.