Open dcalap opened 4 years ago
Me too. I have 19 failed tests with this error when packaging invoke 2.1.0 for openSUSE/Factory.
[ 18s] FAILED tests/runners.py::Runner_::character_buffered_stdin::setcbreak_called_on_tty_stdins
[ 18s] FAILED tests/runners.py::Runner_::character_buffered_stdin::setcbreak_not_called_if_process_not_foregrounded
[ 18s] FAILED tests/runners.py::Runner_::character_buffered_stdin::tty_stdins_have_settings_restored_by_default
[ 18s] FAILED tests/runners.py::Runner_::character_buffered_stdin::tty_stdins_have_settings_restored_on_KeyboardInterrupt
[ 18s] FAILED tests/runners.py::Local_::pty::when_pty_True_we_use_pty_fork_and_os_exec
[ 18s] FAILED tests/runners.py::Local_::pty::pty_uses_WEXITSTATUS_if_WIFEXITED - OSE...
[ 18s] FAILED tests/runners.py::Local_::pty::pty_uses_WTERMSIG_if_WIFSIGNALED - OSEr...
[ 18s] FAILED tests/runners.py::Local_::pty::WTERMSIG_result_turned_negative_to_match_subprocess
[ 18s] FAILED tests/runners.py::Local_::pty::pty_is_set_to_controlling_terminal_size
[ 18s] FAILED tests/runners.py::Local_::pty::spurious_OSErrors_handled_gracefully - ...
[ 18s] FAILED tests/runners.py::Local_::pty::other_spurious_OSErrors_handled_gracefully
[ 18s] FAILED tests/runners.py::Local_::pty::non_spurious_OSErrors_bubble_up - OSErr...
[ 18s] FAILED tests/runners.py::Local_::pty::stop_mutes_errors_on_pty_close - OSErro...
[ 18s] FAILED tests/runners.py::Local_::pty::fallback::can_be_overridden_by_kwarg - ...
[ 18s] FAILED tests/runners.py::Local_::pty::fallback::can_be_overridden_by_config
[ 18s] FAILED tests/runners.py::Local_::pty::fallback::overridden_fallback_affects_result_pty_value
[ 18s] FAILED tests/runners.py::Local_::shell::defaults_to_bash_or_cmdexe_when_pty_True
[ 18s] FAILED tests/runners.py::Local_::shell::may_be_overridden_when_pty_True - OSE...
[ 18s] FAILED tests/runners.py::Local_::env::uses_execve_for_pty_True - OSError: [Er...
I got somewhat the same failures on Debian
/usr/lib/python3.11/unittest/mock.py:1201: OSError
=========================== short test summary info ============================
FAILED tests/runners.py::Local_::pty::when_pty_True_we_use_pty_fork_and_os_exec
FAILED tests/runners.py::Local_::pty::pty_uses_WEXITSTATUS_if_WIFEXITED - OSE...
FAILED tests/runners.py::Local_::pty::pty_uses_WTERMSIG_if_WIFSIGNALED - OSEr...
FAILED tests/runners.py::Local_::pty::WTERMSIG_result_turned_negative_to_match_subprocess
FAILED tests/runners.py::Local_::pty::pty_is_set_to_controlling_terminal_size
FAILED tests/runners.py::Local_::pty::spurious_OSErrors_handled_gracefully - ...
FAILED tests/runners.py::Local_::pty::other_spurious_OSErrors_handled_gracefully
FAILED tests/runners.py::Local_::pty::non_spurious_OSErrors_bubble_up - OSErr...
FAILED tests/runners.py::Local_::pty::stop_mutes_errors_on_pty_close - OSErro...
FAILED tests/runners.py::Local_::pty::fallback::can_be_overridden_by_kwarg - ...
FAILED tests/runners.py::Local_::pty::fallback::can_be_overridden_by_config
FAILED tests/runners.py::Local_::pty::fallback::overridden_fallback_affects_result_pty_value
FAILED tests/runners.py::Local_::shell::defaults_to_bash_or_cmdexe_when_pty_True
FAILED tests/runners.py::Local_::shell::may_be_overridden_when_pty_True - OSE...
FAILED tests/runners.py::Local_::env::uses_execve_for_pty_True - OSError: [Er...
I have this basic python script test.py using invoke library:
And when I try to run it using
runuser
asroot
it fails.Command executed:
runuser -l david -c '/home/david/test.py'
Stacktrace:
Any idea?