fix warning stack levels
Markus Gerstel
2 years ago
487 | 487 | stdin_pipe = subprocess.PIPE |
488 | 488 | if debug is not None: |
489 | 489 | warnings.warn( |
490 | "Use of the debug parameter is deprecated", DeprecationWarning, stacklevel=2 | |
490 | "Use of the debug parameter is deprecated", DeprecationWarning, stacklevel=3 | |
491 | 491 | ) |
492 | 492 | |
493 | 493 | start_time = timeit.default_timer() |
497 | 497 | warnings.warn( |
498 | 498 | "Using procrunner with timeout and without raise_timeout_exception set is deprecated", |
499 | 499 | DeprecationWarning, |
500 | stacklevel=2, | |
500 | stacklevel=3, | |
501 | 501 | ) |
502 | 502 | |
503 | 503 | if environment is not None: |