From be079c54d1bb2c4af8f3830bc1f4df368b6c35f4 Mon Sep 17 00:00:00 2001 From: galipremsagar Date: Wed, 16 Aug 2023 09:41:55 -0700 Subject: [PATCH] test change --- python/cudf/cudf/tests/test_datetime.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/python/cudf/cudf/tests/test_datetime.py b/python/cudf/cudf/tests/test_datetime.py index 57a781be1e6..abcc057f823 100644 --- a/python/cudf/cudf/tests/test_datetime.py +++ b/python/cudf/cudf/tests/test_datetime.py @@ -2139,7 +2139,10 @@ def test_daterange_pandas_compatibility(): with cudf.option_context("mode.pandas_compatible", True): with pytest.raises(NotImplementedError): cudf.date_range("20010101", "20020215", freq="400h", name="times") - expected = pd.date_range("20010101", "20020215", freq="400h", name="times") - expected.freq = None - actual = cudf.date_range("20010101", "20020215", freq="400h", name="times") + expected = pd.date_range( + "2010-01-01", "2010-02-01", periods=10, name="times" + ) + actual = cudf.date_range( + "2010-01-01", "2010-02-01", periods=10, name="times" + ) assert_eq(expected, actual)