forked from pool/python-ZConfig
* 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
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
From 7d4cbabc5f450ac4d9e228d79778c21805136b2c Mon Sep 17 00:00:00 2001
|
|
From: dieter <dieter.maurer@online.de>
|
|
Date: Sat, 18 May 2024 07:12:53 +0200
|
|
Subject: [PATCH] Fix test failure for Python3.13b1
|
|
|
|
---
|
|
CHANGES.rst | 3 +++
|
|
.../components/logger/tests/test_logger.py | 15 +++++++++++++--
|
|
2 files changed, 16 insertions(+), 2 deletions(-)
|
|
|
|
--- a/src/ZConfig/components/logger/tests/test_logger.py
|
|
+++ b/src/ZConfig/components/logger/tests/test_logger.py
|
|
@@ -699,8 +699,19 @@ def test_filehandler_reopen_thread_safety(self):
|
|
h = self.handler_factory(fn)
|
|
|
|
calls = []
|
|
- h.acquire = lambda: calls.append("acquire")
|
|
- h.release = lambda: calls.append("release")
|
|
+
|
|
+ class _LockMockup:
|
|
+ def acquire(*args, **kw):
|
|
+ calls.append("acquire")
|
|
+
|
|
+ __enter__ = acquire
|
|
+
|
|
+ def release(*args, **kw):
|
|
+ calls.append("release")
|
|
+
|
|
+ __exit__ = release
|
|
+
|
|
+ h.lock = _LockMockup()
|
|
|
|
h.reopen()
|
|
self.assertEqual(calls, ["acquire", "release"])
|