Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

pypy/interpreter/test/test_zpy.py::test_argv_command

def test_argv_command():
        """Some tests on argv"""
        # test 1 : no arguments
        output = run(sys.executable, pypypath, '-S',
                     "-c", "import sys;print sys.argv")
        assert output.splitlines()[-1] == str(['-c'])
    
        # test 2 : some arguments after
        output = run(sys.executable, pypypath, '-S',
                     "-c", "import sys;print sys.argv", "hello")
>       assert output.splitlines()[-1] == str(['-c','hello'])
E       IndexError: list index out of range

interpreter\test\test_zpy.py:53: IndexError
---------- Captured stderr call ----------
[platform:msg] Updated environment with vsver 160, using x64 True
[platform:msg] Updated environment with vsver 160, using x64 True
[platform:msg] Updated environment with vsver 160, using x64 True
[platform:msg] Updated environment with vsver 160, using x64 True
Traceback (most recent call last):
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\pypy\bin\pyinteractive.py", line 205, in <module>
    sys.exit(main_(sys.argv))
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\pypy\bin\pyinteractive.py", line 173, in main_
    verbose=interactiveconfig.verbose):
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\pypy\interpreter\main.py", line 109, in run_toplevel
    w_stdout = space.sys.get('stdout')
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\pypy\interpreter\mixedmodule.py", line 81, in get
    w_value = self.getdictvalue(space, name)
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\pypy\module\sys\moduledef.py", line 145, in getdictvalue
    value = MixedModule.getdictvalue(self, space, attr)
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\pypy\interpreter\mixedmodule.py", line 93, in getdictvalue
    return self._load_lazily(space, name)
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\pypy\interpreter\mixedmodule.py", line 103, in _load_lazily
    w_value = loader(space)
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\pypy\interpreter\mixedmodule.py", line 176, in ifileloader
    value = eval(spec, d)
  File "<string>", line 1, in <module>
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\pypy\module\sys\state.py", line 57, in getio
    return space.fromcache(IOState)
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\rpython\rlib\cache.py", line 51, in getorbuild
    result = self._build(key)
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\pypy\interpreter\baseobjspace.py", line 402, in _build
    return callable(self.space)
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\pypy\module\sys\state.py", line 40, in __init__
    w_stdin.file_fdopen(0, "r", 1)
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\pypy\module\_file\interp_file.py", line 329, in file_fdopen
    self.direct_fdopen(fd, mode, buffering)
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\pypy\module\_file\interp_file.py", line 165, in direct_fdopen
    signal_checker(self.space))
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\rpython\rlib\streamio.py", line 115, in fdopen_as_stream
    _setfd_binary(fd)
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\rpython\rlib\streamio.py", line 212, in _setfd_binary
    with rposix.SuppressIPH():
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\rpython\rlib\rposix.py", line 259, in __enter__
    self.invalid_param_hndlr = c_enter_suppress_iph()
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\rpython\rtyper\lltypesystem\rffi.py", line 321, in wrapper
    res = call_external_function(*real_args)
  File "<83-codegen d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\rpython\rtyper\lltypesystem\rffi.py:217>", line 13, in call_external_function
    res = funcptr()
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\rpython\rtyper\lltypesystem\lltype.py", line 1384, in __call__
    return callb(*args)
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\rpython\rtyper\lltypesystem\ll2ctypes.py", line 1339, in __call__
    self.natural_arity)
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\rpython\rtyper\lltypesystem\ll2ctypes.py", line 1236, in get_ctypes_callable
    symbolic=True)
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\rpython\translator\tool\cbuild.py", line 345, in compile_shared_lib
    standalone=False))
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\rpython\translator\platform\__init__.py", line 58, in compile
    return self._finish_linking(ofiles, eci, outputfilename, standalone)
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\rpython\translator\platform\__init__.py", line 235, in _finish_linking
    return self._link(cc_link, ofiles, largs, standalone, exe_name)
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\rpython\translator\platform\windows.py", line 299, in _link
    self._execute_c_compiler(self.link, args, exe_name)
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\rpython\translator\platform\__init__.py", line 143, in _execute_c_compiler
    self._handle_error(returncode, stdout, stderr, outname)
  File "d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\rpython\translator\platform\windows.py", line 315, in _handle_error
    raise CompilationError(stdout, stderr)
CompilationError: CompilationError(out="""
	""")
builder: own-win-x86-64 build #2238+
test: pypy/interpreter/test/test_zpy.py::test_argv_command