From c1074e4f7fa61158e0c7532a5c6c4e9bfac43c63 Mon Sep 17 00:00:00 2001 From: Guillaume Lemaitre Date: Sun, 31 Mar 2024 21:22:02 +0200 Subject: [PATCH] FIX change the way we check for a specific Python version in the test suite (#1075) --- doc/whats_new/v0.12.rst | 16 +++++++++++++++- imblearn/utils/tests/test_docstring.py | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/doc/whats_new/v0.12.rst b/doc/whats_new/v0.12.rst index 741b9173e..1213f1f56 100644 --- a/doc/whats_new/v0.12.rst +++ b/doc/whats_new/v0.12.rst @@ -1,9 +1,23 @@ .. _changes_0_12: +Version 0.12.2 +============== + +**March 31, 2024** + +Changelog +--------- + +Bug fixes +......... + +- Fix the way we check for a specific Python version in the test suite. + :pr:`1075` by :user:`Guillaume Lemaitre `. + Version 0.12.1 ============== -**In progress** +**March 31, 2024** Changelog --------- diff --git a/imblearn/utils/tests/test_docstring.py b/imblearn/utils/tests/test_docstring.py index 133701f8d..4a0753663 100644 --- a/imblearn/utils/tests/test_docstring.py +++ b/imblearn/utils/tests/test_docstring.py @@ -67,7 +67,7 @@ def __init__(self, param_1, param_2): self.param_2 = param_2 -if sys.version_info.minor == "13": +if sys.version_info >= (3, 13): func_docstring = _dedent_docstring(func_docstring) cls_docstring = _dedent_docstring(cls_docstring)