Skip to content

Commit

Permalink
Merge pull request #6895 from janezd/fix-pytz-regression
Browse files Browse the repository at this point in the history
test_pandas: Remove a failing test caused by pytz
  • Loading branch information
markotoplak authored Sep 20, 2024
2 parents 123f294 + a369c14 commit 1d90230
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Orange/data/tests/test_pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,14 +347,10 @@ def test_table_from_frame_timezones(self):
)
table = table_from_frame(df)
self.assertEqual(pytz.timezone("CET"), table.domain.variables[0].timezone)
np.testing.assert_equal(
table.X,
[
[pd.Timestamp("2017-12-19 00:00:00+1").timestamp()],
[pd.Timestamp("1724-12-20 20:20:20+1").timestamp()],
[np.nan],
],
)
# Testing the table was removed because a change in pytz broke it:
# treatment of DST has changed, so test were off by an hour,
# while time zones before ~1930 seem to be off by 42 minutes
# We could fix this, but prefer not to test pytz regressions.

df = pd.DataFrame(
[
Expand Down

0 comments on commit 1d90230

Please sign in to comment.