From 4fdb62794ae2987b39e9a3aea88822ee70a08ad0 Mon Sep 17 00:00:00 2001 From: attilapiros Date: Wed, 16 Aug 2023 15:41:50 -0700 Subject: [PATCH] TEST --- python/pyspark/pandas/tests/test_resample.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/python/pyspark/pandas/tests/test_resample.py b/python/pyspark/pandas/tests/test_resample.py index 4061402590767..9b259a3a65faa 100644 --- a/python/pyspark/pandas/tests/test_resample.py +++ b/python/pyspark/pandas/tests/test_resample.py @@ -34,6 +34,24 @@ class ResampleTestsMixin: + + timezone = None + + + @classmethod + def setUpClass(cls): + tz_string = datetime.datetime.now(datetime.timezone.utc).astimezone().tzname() + print("timezone:", tz_string) + cls.timezone = os.environ.get("TZ") + os.environ["TZ"] = 'America/New_York' + + + @classmethod + def tearDownClass(cls): + if cls.timezone: + os.environ["TZ"] = cls.timezone + + @property def pdf1(self): np.random.seed(11)