Skip to content

Commit

Permalink
fix(python): Python3.8 compatible f-strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nennia committed May 1, 2024
1 parent 6884a8c commit 62aebcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py-polars/tests/unit/operations/rolling/test_rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
import numpy as np
import pytest
from numpy import nan

import polars as pl
from polars.exceptions import ComputeError, InvalidOperationError
from polars.testing import assert_frame_equal, assert_series_equal

import polars as pl

if TYPE_CHECKING:
from polars.type_aliases import ClosedInterval, PolarsDataType, TimeUnit

Expand Down Expand Up @@ -993,6 +993,6 @@ def test_rolling_duration(time_unit: Literal["ns", "us", "ms"]) -> None:

assert (
res_duration["value"].to_list() == res_datetime["value"].to_list()
), f"{res_duration["value"].to_list()}, {res_datetime["value"].to_list()}"
), f"{res_duration['value'].to_list()}, {res_datetime['value'].to_list()}"

assert res_duration["index_column"].dtype == pl.Duration(time_unit=time_unit)

0 comments on commit 62aebcb

Please sign in to comment.