This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch branch-3.4
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.4 by this push:
new a855e332556 [MINOR][PS][TESTS] Fix `SeriesDateTimeTests.test_quarter`
to work properly
a855e332556 is described below
commit a855e33255693e33eb0cd892feef9f093ae4672b
Author: itholic <[email protected]>
AuthorDate: Tue May 23 00:02:24 2023 -0700
[MINOR][PS][TESTS] Fix `SeriesDateTimeTests.test_quarter` to work properly
### What changes were proposed in this pull request?
This PR proposes to fix `SeriesDateTimeTests.test_quarter` to work properly.
### Why are the changes needed?
Test has not been properly testing
### Does this PR introduce _any_ user-facing change?
No, test-only.
### How was this patch tested?
Manually tested, and the existing CI should pass
Closes #41274 from itholic/minor_quarter_test.
Authored-by: itholic <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit a5c53384def22b01b8ef28bee6f2d10648bce1a1)
Signed-off-by: Dongjoon Hyun <[email protected]>
---
python/pyspark/pandas/tests/test_series_datetime.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/pyspark/pandas/tests/test_series_datetime.py
b/python/pyspark/pandas/tests/test_series_datetime.py
index 1c392644edc..67d46dbd809 100644
--- a/python/pyspark/pandas/tests/test_series_datetime.py
+++ b/python/pyspark/pandas/tests/test_series_datetime.py
@@ -212,7 +212,7 @@ class SeriesDateTimeTest(PandasOnSparkTestCase,
SQLTestUtils):
self.check_func(lambda x: x.dt.dayofyear)
def test_quarter(self):
- self.check_func(lambda x: x.dt.dayofyear)
+ self.check_func(lambda x: x.dt.quarter)
def test_is_month_start(self):
self.check_func(lambda x: x.dt.is_month_start)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]