From adc2162bac1c9832e8df39df8dc0a4c04126cc78 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Mon, 2 Dec 2024 11:53:04 -0500 Subject: [PATCH] Ignore warnings so people can run tests on python 3.12 (#15663) --- pytest.ini | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pytest.ini b/pytest.ini index 223145085d..55d0e5bc96 100644 --- a/pytest.ini +++ b/pytest.ini @@ -15,6 +15,17 @@ markers = filterwarnings = error + # NOTE: The following are introduced upgrading python 3.11 to python 3.12 + # FIXME: Upgrade django-polymorphic https://github.com/jazzband/django-polymorphic/pull/541 + once:Deprecated call to `pkg_resources.declare_namespace\('sphinxcontrib'\)`.\nImplementing implicit namespace packages \(as specified in PEP 420\) is preferred to `pkg_resources.declare_namespace`.:DeprecationWarning + + # FIXME: Upgrade protobuf https://github.com/protocolbuffers/protobuf/issues/15077 + once:Type google._upb._message.* uses PyType_Spec with a metaclass that has custom tp_new:DeprecationWarning + + # FIXME: Upgrade python-dateutil https://github.com/dateutil/dateutil/issues/1340 + once:datetime.datetime.utcfromtimestamp\(\) is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC:DeprecationWarning + + # NOTE: the following are present using python 3.11 # FIXME: Set `USE_TZ` to `True`. once:The default value of USE_TZ will change from False to True in Django 5.0. Set USE_TZ to False in your project settings if you want to keep the current default behavior.:django.utils.deprecation.RemovedInDjango50Warning:django.conf