Dear maintainer,
Please find attached a patch to avoid deprecation warnings
causing tests to fail.
Kind Regards
--- a/master/buildbot/test/__init__.py
+++ b/master/buildbot/test/__init__.py
@@ -143,3 +143,35 @@
# use. See https://github.com/boto/botocore/issues/2744
warnings.filterwarnings('ignore', ".*'urllib3.contrib.pyopenssl' module is deprecated",
category=DeprecationWarning)
+
+warnings.filterwarnings(
+ action="ignore",
+ category=DeprecationWarning,
+ message=(
+ ".*Deprecated API features detected! "
+ "These feature\(s\) are not compatible with SQLAlchemy 2\.0"
+ )
+)
+
+# locale.getdefaultlocale() is deprecated since Python 3.11
+warnings.filterwarnings(
+ action='ignore',
+ category=DeprecationWarning,
+ message=".*Use setlocale\(\), getencoding\(\) and getlocale\(\) instead"
+)
+
+warnings.filterwarnings(
+ action="ignore",
+ category=DeprecationWarning,
+ message=(
+ ".*twisted\.web\.resource\.NoResource was deprecated in Twisted NEXT: "
+ "Use twisted\.web\.pages\.notFound instead, which properly escapes HTML"
+ )
+)
+
+# "pipes" module is deprecated since Python 3.11
+warnings.filterwarnings(
+ action="ignore",
+ category=DeprecationWarning,
+ message=".*'pipes' is deprecated and slated for removal in Python 3\.13"
+)