Skip to content

Commit b2d1ac3

Browse files
committed
fix warning stack levels
1 parent 0bf93b9 commit b2d1ac3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

procrunner/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ def run(
488488
stdin_pipe = subprocess.PIPE
489489
if debug is not None:
490490
warnings.warn(
491-
"Use of the debug parameter is deprecated", DeprecationWarning, stacklevel=2
491+
"Use of the debug parameter is deprecated", DeprecationWarning, stacklevel=3
492492
)
493493

494494
start_time = timeit.default_timer()
@@ -498,7 +498,7 @@ def run(
498498
warnings.warn(
499499
"Using procrunner with timeout and without raise_timeout_exception set is deprecated",
500500
DeprecationWarning,
501-
stacklevel=2,
501+
stacklevel=3,
502502
)
503503

504504
if environment is not None:

0 commit comments

Comments
 (0)