diff --git a/procrunner/__init__.py b/procrunner/__init__.py index 7c2d933..70fd69b 100644 --- a/procrunner/__init__.py +++ b/procrunner/__init__.py @@ -488,7 +488,7 @@ stdin_pipe = subprocess.PIPE if debug is not None: warnings.warn( - "Use of the debug parameter is deprecated", DeprecationWarning, stacklevel=2 + "Use of the debug parameter is deprecated", DeprecationWarning, stacklevel=3 ) start_time = timeit.default_timer() @@ -498,7 +498,7 @@ warnings.warn( "Using procrunner with timeout and without raise_timeout_exception set is deprecated", DeprecationWarning, - stacklevel=2, + stacklevel=3, ) if environment is not None: