From 0ab2d9b2e46acc10bd86ca79d18afc423eeef7eb Mon Sep 17 00:00:00 2001 From: Mattias Ellert Date: Fri, 8 Sep 2023 21:03:50 +0200 Subject: [PATCH] Adapt to Python 3.12.0rc2 (#272) The error message changed from "datetime.utcnow() is deprecated" to "datetime.datetime.utcnow() is deprecated". --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 15f25f5..8dd18ae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,5 +60,5 @@ filterwarnings= [ # When we run ipcluster and then run the tests we get this warning "ignore:Widget.* is deprecated:DeprecationWarning", # Deprecated in Python 3.12. Warnings from use in jupyter_client. - "ignore:datetime.utcnow.* is deprecated:DeprecationWarning", + "ignore:.*datetime.utcnow.* is deprecated:DeprecationWarning", ]