Codebase list python-procrunner / b2d1ac3
fix warning stack levels Markus Gerstel 2 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
487487 stdin_pipe = subprocess.PIPE
488488 if debug is not None:
489489 warnings.warn(
490 "Use of the debug parameter is deprecated", DeprecationWarning, stacklevel=2
490 "Use of the debug parameter is deprecated", DeprecationWarning, stacklevel=3
491491 )
492492
493493 start_time = timeit.default_timer()
497497 warnings.warn(
498498 "Using procrunner with timeout and without raise_timeout_exception set is deprecated",
499499 DeprecationWarning,
500 stacklevel=2,
500 stacklevel=3,
501501 )
502502
503503 if environment is not None: