You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.pixi/env/lib/python3.11/subprocess.py:408: incheck_callretcode=call(*popenargs, **kwargs)
.pixi/env/lib/python3.11/subprocess.py:389: incallwithPopen(*popenargs, **kwargs) asp:
.pixi/env/lib/python3.11/subprocess.py:1026: in__init__self._execute_child(args, executable, preexec_fn, close_fds,
self=<Popen: returncode: 255args: ['blaaa']>, args= ['blaaa'], executable=b'blaaa', preexec_fn=None, close_fds=Truepass_fds= (), cwd=None, env=None, startupinfo=None, creationflags=0, shell=False, p2cread=-1, p2cwrite=-1c2pread=-1, c2pwrite=-1, errread=-1, errwrite=-1, restore_signals=True, gid=None, gids=None, uid=Noneumask=-1, start_new_session=False, process_group=-1def_execute_child(self, args, executable, preexec_fn, close_fds,
pass_fds, cwd, env,
startupinfo, creationflags, shell,
p2cread, p2cwrite,
c2pread, c2pwrite,
errread, errwrite,
restore_signals,
gid, gids, uid, umask,
start_new_session, process_group):
"""Execute program (POSIX version)"""ifisinstance(args, (str, bytes)):
args= [args]
elifisinstance(args, os.PathLike):
ifshell:
raiseTypeError('path-like args is not allowed when ''shell is true')
args= [args]
else:
args=list(args)
ifshell:
# On Android the default shell is at '/system/bin/sh'.unix_shell= ('/system/bin/sh'ifhasattr(sys, 'getandroidapilevel') else'/bin/sh')
args= [unix_shell, "-c"] +argsifexecutable:
args[0] =executableifexecutableisNone:
executable=args[0]
sys.audit("subprocess.Popen", executable, args, cwd, env)
if (_USE_POSIX_SPAWNandos.path.dirname(executable)
andpreexec_fnisNoneandnotclose_fdsandnotpass_fdsandcwdisNoneand (p2cread==-1orp2cread>2)
and (c2pwrite==-1orc2pwrite>2)
and (errwrite==-1orerrwrite>2)
andnotstart_new_sessionandprocess_group==-1andgidisNoneandgidsisNoneanduidisNoneandumask<0):
self._posix_spawn(args, executable, env, restore_signals,
p2cread, p2cwrite,
c2pread, c2pwrite,
errread, errwrite)
returnorig_executable=executable# For transferring possible exec failure from child to parent.# Data format: "exception name:hex errno:description"# Pickle is not used; it is complex and involves memory allocation.errpipe_read, errpipe_write=os.pipe()
# errpipe_write must not be in the standard io 0, 1, or 2 fd range.low_fds_to_close= []
whileerrpipe_write<3:
low_fds_to_close.append(errpipe_write)
errpipe_write=os.dup(errpipe_write)
forlow_fdinlow_fds_to_close:
os.close(low_fd)
try:
try:
# We must avoid complex work that could involve# malloc or free in the child process to avoid# potential deadlocks, thus we do all this here.# and pass it to fork_exec()ifenvisnotNone:
env_list= []
fork, vinenv.items():
k=os.fsencode(k)
ifb'='ink:
raiseValueError("illegal environment variable name")
env_list.append(k+b'='+os.fsencode(v))
else:
env_list=None# Use execv instead of execve.executable=os.fsencode(executable)
ifos.path.dirname(executable):
executable_list= (executable,)
else:
# This matches the behavior of os._execvpe().executable_list=tuple(
os.path.join(os.fsencode(dir), executable)
fordirinos.get_exec_path(env))
fds_to_keep=set(pass_fds)
fds_to_keep.add(errpipe_write)
self.pid=_fork_exec(
args, executable_list,
close_fds, tuple(sorted(map(int, fds_to_keep))),
cwd, env_list,
p2cread, p2cwrite, c2pread, c2pwrite,
errread, errwrite,
errpipe_read, errpipe_write,
restore_signals, start_new_session,
process_group, gid, gids, uid, umask,
preexec_fn, _USE_VFORK)
self._child_created=Truefinally:
# be sure the FD is closed no matter whatos.close(errpipe_write)
self._close_pipe_fds(p2cread, p2cwrite,
c2pread, c2pwrite,
errread, errwrite)
# Wait for exec to fail or succeed; possibly raising an# exception (limited in size)errpipe_data=bytearray()
whileTrue:
part=os.read(errpipe_read, 50000)
errpipe_data+=partifnotpartorlen(errpipe_data) >50000:
breakfinally:
# be sure the FD is closed no matter whatos.close(errpipe_read)
iferrpipe_data:
try:
pid, sts=os.waitpid(self.pid, 0)
ifpid==self.pid:
self._handle_exitstatus(sts)
else:
self.returncode=sys.maxsizeexceptChildProcessError:
passtry:
exception_name, hex_errno, err_msg= (
errpipe_data.split(b':', 2))
# The encoding here should match the encoding# written in by the subprocess implementations# like _posixsubprocesserr_msg=err_msg.decode()
exceptValueError:
exception_name=b'SubprocessError'hex_errno=b'0'err_msg='Bad exception data from child: {!r}'.format(
bytes(errpipe_data))
child_exception_type=getattr(
builtins, exception_name.decode('ascii'),
SubprocessError)
ifissubclass(child_exception_type, OSError) andhex_errno:
errno_num=int(hex_errno, 16)
child_exec_never_called= (err_msg=="noexec")
ifchild_exec_never_called:
err_msg=""# The error must be from chdir(cwd).err_filename=cwdelse:
err_filename=orig_executableiferrno_num!=0:
err_msg=os.strerror(errno_num)
>raisechild_exception_type(errno_num, err_msg, err_filename)
EFileNotFoundError: [Errno2] Nosuchfileordirectory: 'blaaa'
.pixi/env/lib/python3.11/subprocess.py:1950: FileNotFoundError
The text was updated successfully, but these errors were encountered:
Here's some things I've tried to render summaries
Summary
2 failed, 1 passed in 0.07s
Style 1
Style 1.1
Style 2
tests/test_bench.py
test_parse_myself
AssertionError: assert [(re.compile(...ype: ignore')] == []
tests/test_bench.py
test_fail
FileNotFoundError: [Errno 2] No such file or directory: 'blaaa'
Style 3
tests/test_bench.py::
test_parse_myself
–AssertionError: assert [(re.compile(...ype: ignore')] == []
tests/test_bench.py::
test_fail
–FileNotFoundError: [Errno 2] No such file or directory: 'blaaa'
Style 4
tests/test_bench.py::
test_parse_myself
AssertionError: assert [(re.compile(...ype: ignore')] == []
tests/test_bench.py::
test_fail
FileNotFoundError: [Errno 2] No such file or directory: 'blaaa'
Style 5
tests/test_bench.py::
test_parse_myself
AssertionError: assert [(re.compile(...ype: ignore')] == []
tests/test_bench.py::
test_fail
FileNotFoundError: [Errno 2] No such file or directory: 'blaaa'
Style 6
tests/test_bench.py::
test_parse_myself
tests/test_bench.py::
test_fail
Failures
tests/test_bench.py::test_parse_myself
Show full traceback
tests/test_bench.py::test_fail
Show full traceback
The text was updated successfully, but these errors were encountered: