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
Fix DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version.
2
+
3
+
`datetime.datetime.utcnow` has been deprecated by Python and will soon be removed by Python 3.14 (see warning text below)
4
+
5
+
The following warning used to pop up everytime someone with a recent version of Python (3.12+) uses this plugin
6
+
7
+
.. code-block::
8
+
9
+
.venv/lib/python3.12/site-packages/pytest_postgresql/retry.py:22: 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).
0 commit comments