Skip to content

Commit

Permalink
Remove redundant timedelta import
Browse files Browse the repository at this point in the history
Signed-off-by: Adam.Dybbroe <[email protected]>
  • Loading branch information
Adam.Dybbroe committed Dec 20, 2024
1 parent 152b45e commit 4ad6ef4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions satpy/tests/reader_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import datetime as dt
import os
from datetime import timedelta
from random import randrange

import numpy as np
Expand All @@ -46,7 +45,7 @@ def random_date(start, end):
delta = end - start
int_delta = (delta.days * 24 * 60 * 60) + delta.seconds
random_second = randrange(int_delta)
return start + timedelta(seconds=random_second)
return start + dt.timedelta(seconds=random_second)


@pytest.fixture(scope="session")
Expand Down

0 comments on commit 4ad6ef4

Please sign in to comment.