Skip to content

Commit

Permalink
TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
attilapiros committed Aug 16, 2023
1 parent 6ae4f4f commit 4fdb627
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions python/pyspark/pandas/tests/test_resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4fdb627

Please sign in to comment.