This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.3 by this push:
     new 457bb342b99 [MINOR][PS][TESTS] Fix `SeriesDateTimeTests.test_quarter` 
to work properly
457bb342b99 is described below

commit 457bb342b99b5ff5f25127c4bc301694a1ca471b
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 d837c34fc74..ab74cfb0d54 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]

Reply via email to