Skip to content

Commit

Permalink
Fix pandas tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Oct 29, 2023
1 parent 964a232 commit 5614bb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions py-polars/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ markers = [
filterwarnings = [
# Fail on warnings...
"error",
# Warning resulting from pandas internals
"ignore:datetime.datetime.utcfromtimestamp\\(\\) is deprecated.*:DeprecationWarning",
# ...except where it prevents test debugging in an IPython console
"ignore:.*unrecognized arguments.*PyDevIPCompleter:DeprecationWarning",
"ignore:.*is_sparse is deprecated.*:FutureWarning",
Expand Down
8 changes: 4 additions & 4 deletions py-polars/tests/unit/test_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,12 +349,12 @@ def test_datetime_supertype_5236() -> None:
df = pd.DataFrame(
{
"StartDateTime": [
pd.Timestamp(datetime.utcnow(), tz="UTC"),
pd.Timestamp(datetime.utcnow(), tz="UTC"),
pd.Timestamp.now(tz="UTC"),
pd.Timestamp.now(tz="UTC"),
],
"EndDateTime": [
pd.Timestamp(datetime.utcnow(), tz="UTC"),
pd.Timestamp(datetime.utcnow(), tz="UTC"),
pd.Timestamp.now(tz="UTC"),
pd.Timestamp.now(tz="UTC"),
],
}
)
Expand Down

0 comments on commit 5614bb6

Please sign in to comment.