summaryrefslogtreecommitdiff
path: root/logilab/common
diff options
context:
space:
mode:
authorLaurent Peuch <cortex@worlddomination.be>2020-10-09 11:10:30 +0200
committerLaurent Peuch <cortex@worlddomination.be>2020-10-09 11:10:30 +0200
commitf7a5bd8003e406ce873653955be0aeec92e486f2 (patch)
tree23726180fed5a791ba14257e5c6d215db948025e /logilab/common
parent0aedd28cb0eca8ba51f54db4fd2e171971569c7d (diff)
downloadlogilab-common-f7a5bd8003e406ce873653955be0aeec92e486f2.tar.gz
feat: add tests to ensure that warnings target the correct line
Diffstat (limited to 'logilab/common')
-rw-r--r--logilab/common/deprecation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/logilab/common/deprecation.py b/logilab/common/deprecation.py
index 848f8e7..e5c755d 100644
--- a/logilab/common/deprecation.py
+++ b/logilab/common/deprecation.py
@@ -383,7 +383,7 @@ def _generate_class_deprecated():
module_name=getattr(
cls, "__deprecation_warning_module_name__", _get_module_name(1)
),
- stacklevel=getattr(cls, "__deprecation_warning_stacklevel__", 4),
+ stacklevel=getattr(cls, "__deprecation_warning_stacklevel__", 3),
version=getattr(cls, "__deprecation_warning_version__", None),
)
return type.__call__(cls, *args, **kwargs)