Skip to content

Commit 5c8c946

Browse files
committed
Fix numrepr_epoch tests
1 parent 0cca607 commit 5c8c946

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/test_types.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -830,10 +830,9 @@ def test_datetime_numrepr_epoch():
830830
dt.datetime(1976, 1, 1),
831831
}
832832
numbers = Int(Counter((d.timestamp() - offset) // scale for d in data))
833-
pattern = DateTime.from_numbers(numbers, epoch=excel_epoch,
834-
unit=dt.timedelta(days=1))
833+
pattern = DateTime.from_numbers(numbers, offset, scale)
835834
assert pattern == NumRepr(DateTime(Counter(data)),
836-
pattern=(Int, 86400, offset))
835+
pattern=(Int, scale, offset))
837836
pattern.validate(20000)
838837
with pytest.raises(TypeError):
839838
pattern.validate('20000')

0 commit comments

Comments
 (0)