File support-pytest-8.3.patch of Package python-scikit-learn
From 4650e75e543718b2c0d9cf7c56aa9dda3c670c11 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Est=C3=A8ve?= <loic.esteve@ymail.com>
Date: Tue, 23 Jul 2024 05:36:37 +0200
Subject: [PATCH 4/4] [azure parallel] fix wrapping for pytest 8.3.1
---
sklearn/utils/deprecation.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sklearn/utils/deprecation.py b/sklearn/utils/deprecation.py
index a3225597701c7..f72f8b8124f28 100644
--- a/sklearn/utils/deprecation.py
+++ b/sklearn/utils/deprecation.py
@@ -97,7 +97,7 @@ def _decorate_property(self, prop):
msg = self.extra
@property
- @functools.wraps(prop)
+ @functools.wraps(prop.fget)
def wrapped(*args, **kwargs):
warnings.warn(msg, category=FutureWarning)
return prop.fget(*args, **kwargs)