Skip to content

Commit

Permalink
test_pandas: Remove failing test caused by pytz
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed Sep 20, 2024
1 parent 123f294 commit a369c14
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 a369c14

Please sign in to comment.