Sourcing python-remove-tests-dir-hook Sourcing python-catch-conflicts-hook.sh Sourcing python-remove-bin-bytecode-hook.sh Sourcing setuptools-build-hook Using setuptoolsBuildPhase Using setuptoolsShellHook Sourcing pip-install-hook Using pipInstallPhase Sourcing python-imports-check-hook.sh Using pythonImportsCheckPhase Sourcing python-namespaces-hook Sourcing setuptools-check-hook Using setuptoolsCheckPhase @nix { "action": "setPhase", "phase": "unpackPhase" } unpacking sources unpacking source archive /nix/store/fx5x19sm9r5jv7mpm6m16nif2b5sqx5b-sh-1.14.2.tar.gz source root is sh-1.14.2 setting SOURCE_DATE_EPOCH to timestamp 1621049797 of file sh-1.14.2/sh.egg-info/top_level.txt @nix { "action": "setPhase", "phase": "patchPhase" } patching sources applying patch /nix/store/k0brbgv7g8h4nb1kkilca2vpxwij8z62-disable-broken-tests-darwin.patch patching file test.py Hunk #2 succeeded at 1010 (offset 5 lines). Hunk #3 succeeded at 1808 (offset 5 lines). Hunk #4 succeeded at 2907 (offset 5 lines). @nix { "action": "setPhase", "phase": "configurePhase" } configuring no configure script, doing nothing @nix { "action": "setPhase", "phase": "buildPhase" } building Executing setuptoolsBuildPhase running bdist_wheel running build running build_py creating build creating build/lib copying sh.py -> build/lib installing to build/bdist.linux-x86_64/wheel running install running install_lib creating build/bdist.linux-x86_64 creating build/bdist.linux-x86_64/wheel copying build/lib/sh.py -> build/bdist.linux-x86_64/wheel running install_egg_info running egg_info writing sh.egg-info/PKG-INFO writing dependency_links to sh.egg-info/dependency_links.txt writing top-level names to sh.egg-info/top_level.txt reading manifest file 'sh.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found anywhere in distribution adding license file 'LICENSE.txt' writing manifest file 'sh.egg-info/SOURCES.txt' Copying sh.egg-info to build/bdist.linux-x86_64/wheel/sh-1.14.2-py3.7.egg-info running install_scripts creating build/bdist.linux-x86_64/wheel/sh-1.14.2.dist-info/WHEEL creating 'dist/sh-1.14.2-py2.py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'sh.py' adding 'sh-1.14.2.dist-info/LICENSE.txt' adding 'sh-1.14.2.dist-info/METADATA' adding 'sh-1.14.2.dist-info/WHEEL' adding 'sh-1.14.2.dist-info/top_level.txt' adding 'sh-1.14.2.dist-info/RECORD' removing build/bdist.linux-x86_64/wheel Finished executing setuptoolsBuildPhase @nix { "action": "setPhase", "phase": "installPhase" } installing Executing pipInstallPhase /build/sh-1.14.2/dist /build/sh-1.14.2 Processing ./sh-1.14.2-py2.py3-none-any.whl Installing collected packages: sh Successfully installed sh-1.14.2 /build/sh-1.14.2 Finished executing pipInstallPhase @nix { "action": "setPhase", "phase": "fixupPhase" } post-installation fixup shrinking RPATHs of ELF executables and libraries in /nix/store/20kx05nyksin0glj6x39dv36a13ccn1b-python3.7-sh-1.14.2 strip is /nix/store/v8imx1nvyz0hgvx9cbcmh6gp4ngw3ffj-binutils-2.35.1/bin/strip stripping (with command strip and flags -S) in /nix/store/20kx05nyksin0glj6x39dv36a13ccn1b-python3.7-sh-1.14.2/lib patching script interpreter paths in /nix/store/20kx05nyksin0glj6x39dv36a13ccn1b-python3.7-sh-1.14.2 checking for references to /build/ in /nix/store/20kx05nyksin0glj6x39dv36a13ccn1b-python3.7-sh-1.14.2... Executing pythonRemoveTestsDir Finished executing pythonRemoveTestsDir @nix { "action": "setPhase", "phase": "installCheckPhase" } running install tests no Makefile or custom installCheckPhase, doing nothing @nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" } pythonCatchConflictsPhase @nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" } pythonRemoveBinBytecodePhase @nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" } pythonImportsCheckPhase Executing pythonImportsCheckPhase @nix { "action": "setPhase", "phase": "setuptoolsCheckPhase" } setuptoolsCheckPhase Executing setuptoolsCheckPhase /nix/store/r4bl79l2bdjawmr2rhhqvci56qh0fkvv-stdenv-linux/setup: line 87: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory running test WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox. running egg_info writing sh.egg-info/PKG-INFO writing dependency_links to sh.egg-info/dependency_links.txt writing top-level names to sh.egg-info/top_level.txt reading manifest file 'sh.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found anywhere in distribution adding license file 'LICENSE.txt' writing manifest file 'sh.egg-info/SOURCES.txt' running build_ext test_basic (test.ExecutionContextTests) ... ok test_importer_detects_module_name (test.ExecutionContextTests) ... ok test_importer_only_works_with_sh (test.ExecutionContextTests) ... ok test_no_bad_name (test.ExecutionContextTests) ... ok test_no_interfere1 (test.ExecutionContextTests) ... ok test_no_interfere2 (test.ExecutionContextTests) ... ok test_reimport_from_cli (test.ExecutionContextTests) ... ok test_reimport_no_interfere (test.ExecutionContextTests) ... ok test_set_in_parent_function (test.ExecutionContextTests) ... ok test_append_stdout (test.FunctionalTests) ... ok test_arg_preprocessor (test.FunctionalTests) ... ok test_background (test.FunctionalTests) ... ok test_background_exception (test.FunctionalTests) ... ok test_bake_args_come_first (test.FunctionalTests) ... ok test_baked_command_can_be_printed (test.FunctionalTests) ... ok test_bg_exit_code (test.FunctionalTests) ... ok test_binary_input (test.FunctionalTests) ... ok test_binary_pipe (test.FunctionalTests) ... ok test_callable_interact (test.FunctionalTests) ... ok test_callable_stdin (test.FunctionalTests) ... ok test_cast_bg (test.FunctionalTests) ... ok test_cd_homedir (test.FunctionalTests) ... ok test_change_stdout_buffering (test.FunctionalTests) ... ok test_close_fds (test.FunctionalTests) ... ok test_cmd_eq (test.FunctionalTests) ... ok test_command_not_found (test.FunctionalTests) ... ok test_command_wrapper (test.FunctionalTests) ... ok test_command_wrapper_equivalence (test.FunctionalTests) ... ok test_composition (test.FunctionalTests) ... ok test_custom_long_prefix (test.FunctionalTests) ... ok test_custom_separator (test.FunctionalTests) ... ok test_custom_separator_space (test.FunctionalTests) ... ok test_custom_timeout_signal (test.FunctionalTests) ... ok test_cwd (test.FunctionalTests) ... ok test_cwd_fg (test.FunctionalTests) ... ok test_decode_error_handling (test.FunctionalTests) ... ok test_doesnt_execute_directories (test.FunctionalTests) ... ok test_done_callback (test.FunctionalTests) ... ok test_done_cb_exc (test.FunctionalTests) ... Exception in thread background thread for pid 294: Traceback (most recent call last): File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/build/sh-1.14.2/sh.py", line 1683, in wrap fn(*rgs, **kwargs) File "/build/sh-1.14.2/sh.py", line 2662, in background_thread handle_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 2349, in fn return self.command.handle_command_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 905, in handle_command_exit_code raise exc sh.ErrorReturnCode_1: RAN: /nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/bin/python3.7 /build/tmpe_asrdl5 STDOUT: STDERR: ok test_empty_stdin_no_hang (test.FunctionalTests) ... ok test_encoding (test.FunctionalTests) ... skipped "what's the best way to test a different '_encoding' special keyword argument?" test_environment (test.FunctionalTests) tests that environments variables that we pass into sh commands ... /nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/queue.py:45: ResourceWarning: unclosed file <_io.FileIO name=3 mode='rb+' closefd=True> self.not_empty = threading.Condition(self.mutex) ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_err_piped (test.FunctionalTests) ... ok test_err_redirection (test.FunctionalTests) ... ok test_err_redirection_actual_file (test.FunctionalTests) ... /build/sh-1.14.2/test.py:1223: ResourceWarning: unclosed file <_io.BufferedWriter name='/build/tmpajz0cl4g'> stdout = python("-u", py.name, _err=file_obj.name).wait() ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_err_to_out (test.FunctionalTests) ... ok test_err_to_out_and_sys_stdout (test.FunctionalTests) ... ok test_exception (test.FunctionalTests) ... ok test_exit_code (test.FunctionalTests) ... ok test_exit_code_from_exception (test.FunctionalTests) ... ok test_exit_code_with_hasattr (test.FunctionalTests) ... Exception in thread background thread for pid 384: Traceback (most recent call last): File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/build/sh-1.14.2/sh.py", line 1683, in wrap fn(*rgs, **kwargs) File "/build/sh-1.14.2/sh.py", line 2662, in background_thread handle_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 2349, in fn return self.command.handle_command_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 905, in handle_command_exit_code raise exc sh.ErrorReturnCode_3: RAN: /nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/bin/python3.7 /build/tmprohh_rxq STDOUT: STDERR: ok test_failure_with_large_output (test.FunctionalTests) ... ok test_false_bool_ignore (test.FunctionalTests) ... /nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py:789: ResourceWarning: unclosed file <_io.FileIO name=3 mode='rb+' closefd=True> self._target = target ResourceWarning: Enable tracemalloc to get the object allocation traceback /nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py:789: ResourceWarning: unclosed file <_io.FileIO name=6 mode='rb+' closefd=True> self._target = target ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_fg (test.FunctionalTests) ... ok test_fg_alternative (test.FunctionalTests) ... ok test_fg_env (test.FunctionalTests) ... ok test_fg_exc (test.FunctionalTests) ... ok test_fg_false (test.FunctionalTests) https://github.com/amoffat/sh/issues/520 ... ok test_fg_true (test.FunctionalTests) https://github.com/amoffat/sh/issues/520 ... ok test_for_generator_to_err (test.FunctionalTests) ... ok test_fork_exc (test.FunctionalTests) ... ok test_general_signal (test.FunctionalTests) ... ERROR test_generator_and_callback (test.FunctionalTests) ... ok test_grandchild_no_sighup (test.FunctionalTests) ... ok test_huge_piped_data (test.FunctionalTests) ... ok test_incompatible_special_args (test.FunctionalTests) ... ok test_incremental_composition (test.FunctionalTests) ... ok test_internal_bufsize (test.FunctionalTests) ... ok test_invalid_env (test.FunctionalTests) ... ok test_iter_generator (test.FunctionalTests) ... ok test_iter_unicode (test.FunctionalTests) ... ok test_long_bool_option (test.FunctionalTests) ... ok test_long_option (test.FunctionalTests) ... ok test_manual_stdin_file (test.FunctionalTests) ... ok test_manual_stdin_iterable (test.FunctionalTests) ... ok test_manual_stdin_queue (test.FunctionalTests) ... /nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py:227: ResourceWarning: unclosed file <_io.FileIO name=3 mode='rb+' closefd=True> self._release_save = lock._release_save ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_manual_stdin_string (test.FunctionalTests) ... ok test_multiple_args_long_option (test.FunctionalTests) ... ok test_multiple_args_short_option (test.FunctionalTests) ... ok test_multiple_bakes (test.FunctionalTests) ... ok test_multiple_pipes (test.FunctionalTests) ... ok test_new_session (test.FunctionalTests) ... ok test_no_arg (test.FunctionalTests) ... ok test_no_close_fds (test.FunctionalTests) ... ok test_no_err (test.FunctionalTests) ... ok test_no_out (test.FunctionalTests) ... ok test_no_pipe (test.FunctionalTests) ... ok test_no_proc_no_attr (test.FunctionalTests) ... ok test_non_ascii_error (test.FunctionalTests) ... ok test_non_existant_cwd (test.FunctionalTests) ... ok test_nonblocking_iter (test.FunctionalTests) ... ok test_none_arg (test.FunctionalTests) ... ok test_number_arg (test.FunctionalTests) ... ok test_ok_code (test.FunctionalTests) ... ok test_ok_code_exception (test.FunctionalTests) ... ok test_ok_code_none (test.FunctionalTests) ... ok test_out_filename (test.FunctionalTests) ... /build/sh-1.14.2/test.py:1798: ResourceWarning: unclosed file <_io.BufferedWriter name='/build/tmpqlm0o723'> python(py.name, _out=outfile.name) ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_out_redirection (test.FunctionalTests) ... ok test_output_equivalence (test.FunctionalTests) ... ok test_partially_applied_callback (test.FunctionalTests) ... ok test_pass_fds (test.FunctionalTests) ... ok test_patched_glob (test.FunctionalTests) ... ok test_patched_glob_with_recursive_argument (test.FunctionalTests) ... ok test_pipe_fd (test.FunctionalTests) ... ok test_piped_exception1 (test.FunctionalTests) ... Exception in thread background thread for pid 748: Traceback (most recent call last): File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/build/sh-1.14.2/sh.py", line 1683, in wrap fn(*rgs, **kwargs) File "/build/sh-1.14.2/sh.py", line 2662, in background_thread handle_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 2349, in fn return self.command.handle_command_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 905, in handle_command_exit_code raise exc sh.ErrorReturnCode_2: RAN: /nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/bin/python3.7 /build/tmprlsz7ws3 STDOUT: STDERR: ok test_piped_exception2 (test.FunctionalTests) ... Exception in thread background thread for pid 757: Traceback (most recent call last): File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/build/sh-1.14.2/sh.py", line 1683, in wrap fn(*rgs, **kwargs) File "/build/sh-1.14.2/sh.py", line 2662, in background_thread handle_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 2349, in fn return self.command.handle_command_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 905, in handle_command_exit_code raise exc sh.ErrorReturnCode_2: RAN: /nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/bin/python3.7 /build/tmpr2mnu2cv STDOUT: STDERR: ok test_piped_generator (test.FunctionalTests) ... ok test_print_command (test.FunctionalTests) ... ok test_pushd (test.FunctionalTests) test basic pushd functionality ... ok test_pushd_cd (test.FunctionalTests) test that pushd works like pushd/popd with built-in cd correctly ... ok test_quote_escaping (test.FunctionalTests) ... ok test_raw_args (test.FunctionalTests) ... ok test_shadowed_subcommand (test.FunctionalTests) ... ok test_short_bool_option (test.FunctionalTests) ... ok test_short_option (test.FunctionalTests) ... ok test_signal_exception (test.FunctionalTests) ... Exception in thread background thread for pid 855: Traceback (most recent call last): File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/build/sh-1.14.2/sh.py", line 1683, in wrap fn(*rgs, **kwargs) File "/build/sh-1.14.2/sh.py", line 2662, in background_thread handle_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 2349, in fn return self.command.handle_command_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 905, in handle_command_exit_code raise exc sh.SignalException_SIGTERM: RAN: /nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/bin/python3.7 /build/tmptf4gfrg7 STDOUT: STDERR: ok test_signal_group (test.FunctionalTests) ... Exception in thread background thread for pid 860: Traceback (most recent call last): File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/build/sh-1.14.2/sh.py", line 1683, in wrap fn(*rgs, **kwargs) File "/build/sh-1.14.2/sh.py", line 2662, in background_thread handle_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 2349, in fn return self.command.handle_command_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 905, in handle_command_exit_code raise exc sh.SignalException_SIGKILL: RAN: /nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/bin/python3.7 /build/tmp9kuk_93t STDOUT: 866 866 STDERR: ok test_sigpipe (test.FunctionalTests) ... Exception in thread background thread for pid 871: Traceback (most recent call last): File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/build/sh-1.14.2/sh.py", line 1683, in wrap fn(*rgs, **kwargs) File "/build/sh-1.14.2/sh.py", line 2662, in background_thread handle_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 2349, in fn return self.command.handle_command_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 905, in handle_command_exit_code raise exc sh.SignalException_SIGKILL: RAN: /nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/bin/python3.7 /build/tmp9kuk_93t STDOUT: 877 877 STDERR: ok test_stdin_from_string (test.FunctionalTests) ... ok test_stdin_newline_bufsize (test.FunctionalTests) ... ok test_stdin_unbuffered_bufsize (test.FunctionalTests) ... ok test_stdout_callback (test.FunctionalTests) ... ok test_stdout_callback_buffered (test.FunctionalTests) ... ok test_stdout_callback_exit (test.FunctionalTests) ... ok test_stdout_callback_kill (test.FunctionalTests) ... Exception in thread background thread for pid 920: Traceback (most recent call last): File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/build/sh-1.14.2/sh.py", line 1683, in wrap fn(*rgs, **kwargs) File "/build/sh-1.14.2/sh.py", line 2662, in background_thread handle_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 2349, in fn return self.command.handle_command_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 905, in handle_command_exit_code raise exc sh.SignalException_SIGKILL: RAN: /nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/bin/python3.7 -u /build/tmp7trqlh_t STDOUT: STDERR: ok test_stdout_callback_line_buffered (test.FunctionalTests) ... ok test_stdout_callback_line_unbuffered (test.FunctionalTests) ... /build/sh-1.14.2/sh.py:2785: ResourceWarning: unclosed file <_io.FileIO name=3 mode='rb+' closefd=True> chunk = stdin.get(True, 0.1) ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_stdout_callback_no_wait (test.FunctionalTests) ... ok test_stdout_callback_terminate (test.FunctionalTests) ... Exception in thread background thread for pid 939: Traceback (most recent call last): File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/build/sh-1.14.2/sh.py", line 1683, in wrap fn(*rgs, **kwargs) File "/build/sh-1.14.2/sh.py", line 2662, in background_thread handle_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 2349, in fn return self.command.handle_command_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 905, in handle_command_exit_code raise exc sh.SignalException_SIGTERM: RAN: /nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/bin/python3.7 -u /build/tmpwrjw_c1c STDOUT: STDERR: ok test_stdout_callback_with_input (test.FunctionalTests) ... ok test_stdout_pipe (test.FunctionalTests) ... /build/sh-1.14.2/sh.py:2787: ResourceWarning: unclosed file <_io.FileIO name=3 mode='rb+' closefd=True> raise NotYetReadyToRead ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_stringio_input (test.FunctionalTests) ... ok test_stringio_output (test.FunctionalTests) ... ok test_subcommand_and_bake (test.FunctionalTests) ... ok test_timeout (test.FunctionalTests) ... ok test_timeout_overstep (test.FunctionalTests) ... ok test_timeout_wait (test.FunctionalTests) ... ok test_timeout_wait_negative (test.FunctionalTests) ... ok test_timeout_wait_overstep (test.FunctionalTests) ... ok test_trunc_exc (test.FunctionalTests) ... ok test_tty_input (test.FunctionalTests) ... ok test_tty_output (test.FunctionalTests) ... ok test_tty_stdin (test.FunctionalTests) ... ok test_tty_tee (test.FunctionalTests) ... ok test_unchecked_pipeline_failure (test.FunctionalTests) ... Exception in thread background thread for pid 1049: Traceback (most recent call last): File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/build/sh-1.14.2/sh.py", line 1683, in wrap fn(*rgs, **kwargs) File "/build/sh-1.14.2/sh.py", line 2662, in background_thread handle_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 2349, in fn return self.command.handle_command_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 905, in handle_command_exit_code raise exc sh.ErrorReturnCode_2: RAN: /nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/bin/python3.7 /build/tmp7qnjmcnn STDOUT: STDERR: ok test_unchecked_producer_failure (test.FunctionalTests) ... Exception in thread background thread for pid 1062: Traceback (most recent call last): File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/build/sh-1.14.2/sh.py", line 1683, in wrap fn(*rgs, **kwargs) File "/build/sh-1.14.2/sh.py", line 2662, in background_thread handle_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 2349, in fn return self.command.handle_command_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 905, in handle_command_exit_code raise exc sh.ErrorReturnCode_2: RAN: /nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/bin/python3.7 /build/tmpxxjvx0yy STDOUT: STDERR: ok test_unicode_arg (test.FunctionalTests) ... ok test_unicode_exception (test.FunctionalTests) ... ok test_which (test.FunctionalTests) ... ok test_which_paths (test.FunctionalTests) ... ok test_with_context (test.FunctionalTests) ... /nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/lib/python3.7/threading.py:222: ResourceWarning: unclosed file <_io.FileIO name=3 mode='rb+' closefd=True> self.release = lock.release ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_with_context_args (test.FunctionalTests) ... ok test_args_deprecated (test.MiscTests) ... ok test_change_log_message (test.MiscTests) ... ok test_eintr (test.MiscTests) ... ok test_fd_over_1024 (test.MiscTests) ... ok test_no_fd_leak (test.MiscTests) ... ok test_percent_doesnt_fail_logging (test.MiscTests) test that a command name doesn't interfere with string formatting in ... ok test_pickling (test.MiscTests) ... ok test_pushd_thread_safety (test.MiscTests) ... ok test_signal_exception_aliases (test.MiscTests) proves that signal exceptions with numbers and names are equivalent ... ok test_stdin_nohang (test.MiscTests) ... ok test_stop_iteration_doesnt_block (test.MiscTests) proves that calling calling next() on a stopped iterator doesn't ... ok test_threaded_with_contexts (test.MiscTests) ... /build/sh-1.14.2/sh.py:2220: ResourceWarning: unclosed file <_io.FileIO name=3 mode='rb+' closefd=True> self._stdout = deque(maxlen=ca["internal_bufsize"]) ResourceWarning: Enable tracemalloc to get the object allocation traceback /build/sh-1.14.2/sh.py:2220: ResourceWarning: unclosed file <_io.FileIO name=19 mode='rb' closefd=True> self._stdout = deque(maxlen=ca["internal_bufsize"]) ResourceWarning: Enable tracemalloc to get the object allocation traceback ok test_unicode_path (test.MiscTests) ... skipped 'Does not work in sandbox' test_wraps (test.MiscTests) ... ok test_patch_command (test.MockTests) ... ok test_patch_command_cls (test.MockTests) ... ok test_chunk_buffered (test.StreamBuffererTests) ... ok test_newline_buffered (test.StreamBuffererTests) ... ok test_unbuffered (test.StreamBuffererTests) ... ok ====================================================================== ERROR: test_general_signal (test.FunctionalTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/sh-1.14.2/test.py", line 1546, in test_general_signal p = python(py.name, _out=agg, _tee=True) File "/build/sh-1.14.2/sh.py", line 1566, in __call__ return RunningCommand(cmd, call_args, stdin, stdout, stderr) File "/build/sh-1.14.2/sh.py", line 822, in __init__ self.wait() File "/build/sh-1.14.2/sh.py", line 879, in wait self.handle_command_exit_code(exit_code) File "/build/sh-1.14.2/sh.py", line 905, in handle_command_exit_code raise exc sh.ErrorReturnCode_1: RAN: /nix/store/4z7d194syfyp4ghacl4fbd61q4a13kyn-python3-3.7.11/bin/python3.7 /build/tmppc01h7_0 STDOUT: 0 1 2 3 STDERR: Traceback (most recent call last): File "/build/tmppc01h7_0", line 14, in print(i) File "/build/tmppc01h7_0", line 8, in sig_handler print(10) RuntimeError: reentrant call inside <_io.BufferedWriter name=''> ---------------------------------------------------------------------- Ran 171 tests in 75.234s FAILED (errors=1, skipped=2) Test failed: error: Test failed: