15
0
Files
python-ZConfig/support-python-312.patch
Dirk Mueller eed39f6a4a - update to 4.1:
* Add support for Python 3.12.
- drop support-python-312.patch (upstream)
- add py313.patch: fix test failures with 3.13
  * Drop support for Python 2.6 and 3.2 and add support for
  * BaseLoader is now an abstract class that cannot be
  * Allow nan, inf and -inf values for floats in configurations.
  * Scripts zconfig (for schema validation) and
  * A new ZConfig.sphinx Sphinx extension facilitates
    automatically documenting ZConfig components using their
    description and examples in Sphinx documentation. See
  * Simplify internal schema processing of max and min
  * Almost all uses of type as a parameter name have been
    replaced with type_ to avoid shadowing a builtin. These were
  * Add ability to do variable substitution from environment

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ZConfig?expand=0&rev=23
2024-10-28 22:21:36 +00:00

38 lines
1.3 KiB
Diff

From f5af2333db607f612f21ab0d4efd35b5cc72199b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20Van=C4=9Bk?= <arkamar@atlas.cz>
Date: Tue, 6 Jun 2023 08:52:08 +0200
Subject: [PATCH] Fix tests for Python 3.12
In the tests, remove the assertRaisesRegexp method, deprecated since
Python 3.2, to prevent test failures following the method's removal in
Python 3.12.
---
src/ZConfig/tests/support.py | 7 -------
1 file changed, 7 deletions(-)
diff --git a/src/ZConfig/tests/support.py b/src/ZConfig/tests/support.py
index 959f2b9..559c015 100644
--- a/src/ZConfig/tests/support.py
+++ b/src/ZConfig/tests/support.py
@@ -17,7 +17,6 @@
import contextlib
import os
import sys
-import unittest
from io import StringIO
from urllib.request import pathname2url
@@ -79,12 +78,6 @@ def f2(self):
class TestHelper:
"""Utility methods which can be used with the schema support."""
- # Not derived from unittest.TestCase; some test runners seem to
- # think that means this class contains tests.
-
- assertRaisesRegex = getattr(unittest.TestCase, 'assertRaisesRegex',
- unittest.TestCase.assertRaisesRegexp)
-
def load_both(self, schema_url, conf_url):
schema = self.load_schema(schema_url)
conf = self.load_config(schema, conf_url)