Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MainRo committed Nov 7, 2024
1 parent 9244e36 commit 9a6a5cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_observable/test_takeuntilwithtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_takeuntil_zero(self):
)

def create():
return xs.pipe(ops.take_until_with_time(datetime.fromtimestamp(0)), tz=timezone.utc)
return xs.pipe(ops.take_until_with_time(datetime.fromtimestamp(0, tz=timezone.utc)))

res = scheduler.start(create)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_scheduler/test_historicalscheduler.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
from datetime import datetime, timedelta
from datetime import datetime, timedelta, timezone

from reactivex.internal.constants import UTC_ZERO
from reactivex.scheduler import HistoricalScheduler
Expand All @@ -20,7 +20,7 @@ def assert_equals(first, second):


def time(days):
dt = datetime(year=1979, month=10, day=31, hour=4, minute=30, second=15)
dt = datetime(year=1979, month=10, day=31, hour=4, minute=30, second=15, tzinfo=timezone.utc)
dt = dt + timedelta(days=days)
return dt

Expand Down

0 comments on commit 9a6a5cd

Please sign in to comment.