This is an automated email from the ASF dual-hosted git repository.

iilyak pushed a commit to branch upgrade-nose2
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 0501c69eb2f41ef9af53731ce4d6d1ae7c8810a9
Author: ILYA Khlopotov <iil...@apache.org>
AuthorDate: Wed May 15 13:41:56 2024 -0700

    Update `nose2` to 0.13 to remove the missing method warning.
    
    The `unittest.TestCase` class in python 3.12 has a new addDuration method.
    The nose extends that class without providing the implementation for the 
method.
    This has been fixed in following PR 
https://github.com/nose-devs/nose2/pull/570.
    The PR was included in 0.13. This version requires python >= 3.5. Which is a
    minimum required version for CouchDB as well.
    
    The original warning message (for 3.12/3.12.2_1)
    
    ```
    The python version >= 3.12 doesn't provide
    3.12/lib/python3.12/unittest/case.py:580:
      RuntimeWarning: TestResult has no addDuration method
        warnings.warn("TestResult has no addDuration method",
    ```
---
 src/mango/requirements.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mango/requirements.txt b/src/mango/requirements.txt
index e63cbdde7..e9c95fc20 100644
--- a/src/mango/requirements.txt
+++ b/src/mango/requirements.txt
@@ -1,4 +1,4 @@
-nose2==0.11.0
+nose2==0.13.0
 # requests 2.27.1 is the highest supported version
 # on ubuntu 18 and centos 7 CI workers
 requests==2.27.1

Reply via email to