Skip to content

Commit adc2162

Browse files
authored
Ignore warnings so people can run tests on python 3.12 (#15663)
1 parent e411f35 commit adc2162

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pytest.ini

+11
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ markers =
1515
filterwarnings =
1616
error
1717

18+
# NOTE: The following are introduced upgrading python 3.11 to python 3.12
19+
# FIXME: Upgrade django-polymorphic https://github.com/jazzband/django-polymorphic/pull/541
20+
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
21+
22+
# FIXME: Upgrade protobuf https://github.com/protocolbuffers/protobuf/issues/15077
23+
once:Type google._upb._message.* uses PyType_Spec with a metaclass that has custom tp_new:DeprecationWarning
24+
25+
# FIXME: Upgrade python-dateutil https://github.com/dateutil/dateutil/issues/1340
26+
once:datetime.datetime.utcfromtimestamp\(\) is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC:DeprecationWarning
27+
28+
# NOTE: the following are present using python 3.11
1829
# FIXME: Set `USE_TZ` to `True`.
1930
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
2031

0 commit comments

Comments
 (0)