-
Notifications
You must be signed in to change notification settings - Fork 365
Open
Description
Describe the bug
There are some deprecation warnings with Python 3.12.
To Reproduce
Run tests with Python 3.12
Expected behavior
Tests should run clean.
For example:
/builddir/build/BUILD/reactivex-4.0.4/reactivex/internal/basic.py:17: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
return datetime.utcnow()
tests/test_observable/test_delay.py::TestDelay::test_delay_datetime_offset_error1_impl
/builddir/build/BUILD/reactivex-4.0.4/tests/test_observable/test_delay.py:204: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
return xs.pipe(delay(datetime.utcfromtimestamp(250)))
tests/test_observable/test_delay.py::TestDelay::test_delay_datetime_offset_error2_impl
/builddir/build/BUILD/reactivex-4.0.4/tests/test_observable/test_delay.py:247: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
return xs.pipe(delay(datetime.utcfromtimestamp(350)))
rob4226, ericliuche, dgrullon3141, ykun9, andyshinn and 5 more
Metadata
Metadata
Assignees
Labels
No labels