You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)))
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:
https://docs.python.org/3.12/whatsnew/3.12.html#deprecated
The text was updated successfully, but these errors were encountered: