/
githubmirror
/
salt
Обзор
Документация
Войти
/
githubmirror
/
salt
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/unit/utils/test_timed_subprocess.py
13 строк
532 B
Daniel A. Wozniak
Pyupgrade and drop six
06 июл 2021, 16:04
06 июл 2021, 16:04
d9b5065
Код
Авторство
О чём код?
import salt.utils.timed_subprocess as timed_subprocess from tests.support.unit import TestCase class TestTimedSubprocess(TestCase): def test_timedproc_with_shell_true_and_list_args(self): """ This test confirms the fix for the regression introduced in 1f7d50d. The TimedProc dunder init would result in a traceback if the args were passed as a list and shell=True was set. """ p = timed_subprocess.TimedProc(["echo", "foo"], shell=True) del p # Don't need this anymore