Skip to content

Commit 1d90230

Browse files
authored
Merge pull request #6895 from janezd/fix-pytz-regression
test_pandas: Remove a failing test caused by pytz
2 parents 123f294 + a369c14 commit 1d90230

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Orange/data/tests/test_pandas.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -347,14 +347,10 @@ def test_table_from_frame_timezones(self):
347347
)
348348
table = table_from_frame(df)
349349
self.assertEqual(pytz.timezone("CET"), table.domain.variables[0].timezone)
350-
np.testing.assert_equal(
351-
table.X,
352-
[
353-
[pd.Timestamp("2017-12-19 00:00:00+1").timestamp()],
354-
[pd.Timestamp("1724-12-20 20:20:20+1").timestamp()],
355-
[np.nan],
356-
],
357-
)
350+
# Testing the table was removed because a change in pytz broke it:
351+
# treatment of DST has changed, so test were off by an hour,
352+
# while time zones before ~1930 seem to be off by 42 minutes
353+
# We could fix this, but prefer not to test pytz regressions.
358354

359355
df = pd.DataFrame(
360356
[

0 commit comments

Comments
 (0)