python testrunner/app_level_tests.py in dir d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build (timeout 4000 secs) watching logfiles {'pytestLog': 'pytest-A.log'} argv: ['python', 'testrunner/app_level_tests.py'] environment: ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\matti\AppData\Roaming ASL.LOG=Destination=file CHOCOLATEYINSTALL=C:\ProgramData\chocolatey CHOCOLATEYLASTPATHUPDATE=133185086718935289 CHOCOLATEYTOOLSLOCATION=C:\tools CLINK_DIR=C:\Program Files (x86)\clink\0.4.9 COMMONPROGRAMFILES=C:\Program Files (x86)\Common Files COMMONPROGRAMFILES(X86)=C:\Program Files (x86)\Common Files COMMONPROGRAMW6432=C:\Program Files\Common Files COMPUTERNAME=DESKTOP-RYZEN COMSPEC=C:\WINDOWS\system32\cmd.exe CONDA_BAT=d:\miniconda\condabin\conda.bat CONDA_EXE=d:\miniconda\Scripts\conda.exe CONDA_SHLVL=0 CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7 CUDA_PATH_V11_7=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7 DRIVERDATA=C:\Windows\System32\Drivers\DriverData LOCALAPPDATA=C:\Users\matti\AppData\Local NUMBER_OF_PROCESSORS=2 NVTOOLSEXT_PATH=C:\Program Files\NVIDIA Corporation\NvToolsExt\ OS=Windows_NT PATH=d:\CPython27\lib\site-packages\pywin32_system32;d:\pypy_stuff\pypy\externals\bin;D:\CPython27;D:\pypy_stuff\pypy2.7-v7.3.18\Scripts;D:\pypy_stuff\pypy2.7-v7.3.18;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseHg\;C:\Program Files\Git\cmd;C:\ProgramData\chocolatey\bin;C:\WINDOWS\System32\OpenSSH PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PROCESSOR_ARCHITECTURE=x86 PROCESSOR_ARCHITEW6432=AMD64 PROCESSOR_IDENTIFIER=AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD PROCESSOR_LEVEL=23 PROCESSOR_REVISION=7100 PROGRAMDATA=C:\ProgramData PROGRAMFILES=C:\Program Files (x86) PROGRAMFILES(X86)=C:\Program Files (x86) PROGRAMW6432=C:\Program Files PROMPT=$P$G PSMODULEPATH=%ProgramFiles%\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules PUBLIC=C:\Users\Public PWD=d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build PYPY_ENABLE_WINCONSOLEIO=1 PYTEST_XDIST_AUTO_NUM_WORKERS=4 RTOOLS40_HOME=C:\rtools40 RTOOLS43_HOME=C:\rtools43 RTOOLS44_HOME=C:\rtools44 SYSTEMDRIVE=C: SYSTEMROOT=C:\WINDOWS TEMP=D:\SystemTemp TMP=D:\SystemTemp TMPDIR=d:\systemtemp\pytest USERDOMAIN=DESKTOP-RYZEN USERNAME=matti USERPROFILE=C:\Users\matti VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\ WINDIR=C:\WINDOWS using PTY: False using config pypy/pytest-A.cfg using config pypy/pytest-A.py using config C:\Users\matti/machine-A_cfg.py running 2 parallel test workers setting MAKEFLAGS to ' ' (space) -- interpreter/astcompiler/test -- interpreter/pyparser/test -- interpreter/test -- objspace/test -- objspace/std/test -- module/__builtin__/test -- module/__pypy__/test -- module/_abc/test -- module/_ast/test -- module/_cffi_backend/test -- module/_codecs/test -- module/_collections/test -- module/_continuation/test -- module/_cppyy/test -- module/_csv/test -- module/_demo/test -- module/_hpy_universal/test/_vendored -- module/_hpy_universal/test/pypy -- module/_io/test -- module/_jitlog/test -- module/_locale/test -- module/_lsprof/test -- module/_md5/test -- module/_minimal_curses/test -- module/_multibytecodec/test -- module/_multiprocessing/test -- module/_opcode/test -- module/_pickle/test -- module/_pickle_support/test -- module/_posixsubprocess/test -- module/_pypyjson/test -- module/_random/test -- module/_rawffi/alt/test -- module/_rawffi/test -- module/_socket/test -- module/_sre/test -- module/_vmprof/test -- module/_warnings/test -- module/_weakref/test -- module/_winreg/test -- module/array/test -- module/atexit/test -- module/binascii/test -- module/bz2/test -- module/cmath/test -- module/cpyext/test/test_api.py -- module/cpyext/test/test_arraymodule.py -- module/cpyext/test/test_async_iter.py -- module/cpyext/test/test_boolobject.py -- module/cpyext/test/test_borrow.py -- module/cpyext/test/test_buffer.py -- module/cpyext/test/test_bytearrayobject.py -- module/cpyext/test/test_bytesobject.py -- module/cpyext/test/test_capsule.py -- module/cpyext/test/test_cell.py -- module/cpyext/test/test_classobject.py -- module/cpyext/test/test_codecs.py -- module/cpyext/test/test_complexobject.py -- module/cpyext/test/test_contextvars.py -- module/cpyext/test/test_cpyext.py -- module/cpyext/test/test_datetime.py -- module/cpyext/test/test_dictobject.py -- module/cpyext/test/test_eval.py -- module/cpyext/test/test_exception.py -- module/cpyext/test/test_fileobject.py -- module/cpyext/test/test_floatobject.py -- module/cpyext/test/test_frameobject.py -- module/cpyext/test/test_funcobject.py -- module/cpyext/test/test_genobject.py -- module/cpyext/test/test_getargs.py -- module/cpyext/test/test_import.py -- module/cpyext/test/test_iterator.py -- module/cpyext/test/test_listobject.py -- module/cpyext/test/test_longobject.py -- module/cpyext/test/test_mapping.py -- module/cpyext/test/test_marshal.py -- module/cpyext/test/test_memoryobject.py -- module/cpyext/test/test_methodobject.py -- module/cpyext/test/test_misc.py -- module/cpyext/test/test_module.py -- module/cpyext/test/test_namespaceobject.py -- module/cpyext/test/test_ndarrayobject.py -- module/cpyext/test/test_number.py -- module/cpyext/test/test_object.py -- module/cpyext/test/test_pyerrors.py -- module/cpyext/test/test_pyfile.py -- module/cpyext/test/test_pymem.py -- module/cpyext/test/test_pysignals.py -- module/cpyext/test/test_pystate.py -- module/cpyext/test/test_pystrhex.py -- module/cpyext/test/test_pystrtod.py -- module/cpyext/test/test_sequence.py -- module/cpyext/test/test_setobject.py -- module/cpyext/test/test_sliceobject.py -- module/cpyext/test/test_structseq.py -- module/cpyext/test/test_sysmodule.py -- module/cpyext/test/test_thread.py -- module/cpyext/test/test_traceback.py -- module/cpyext/test/test_translate.py -- module/cpyext/test/test_tupleobject.py -- module/cpyext/test/test_typeobject.py -- module/cpyext/test/test_unicodeobject.py -- module/cpyext/test/test_userslots.py -- module/cpyext/test/test_version.py -- module/cpyext/test/test_weakref.py -- module/crypt/test -- module/errno/test -- module/exceptions/test -- module/faulthandler/test -- module/fcntl/test -- module/gc/test -- module/imp/test -- module/itertools/test -- module/marshal/test -- module/math/test -- module/micronumpy/test -- module/mmap/test -- module/operator/test -- module/posix/test -- module/pwd/test -- module/pyexpat/test -- module/pypyjit/test -- module/select/test -- module/signal/test -- module/struct/test -- module/sys/test -- module/termios/test -- module/test_lib_pypy -- module/thread/test -- module/time/test -- module/token/test -- module/unicodedata/test -- module/zipimport/test -- module/zlib/test -- total: 134 to run ++ 06:08:31 starting interpreter/astcompiler/test [1 started in total] ++ 06:08:31 starting interpreter/pyparser/test [2 started in total] __ interpreter/pyparser/test [1 done in total, somefailed=False] ______________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 0.29 seconds ========================= ++ 06:08:42 starting interpreter/test [3 started in total] __ interpreter/astcompiler/test [2 done in total, somefailed=False] ___________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 15 items interpreter\astcompiler\test\test_compiler.py ..s............ ==================== 14 passed, 1 skipped in 3.77 seconds ===================== ++ 06:08:46 starting objspace/test [4 started in total] __ objspace/test [3 done in total, somefailed=False] __________________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 0.24 seconds ========================= ++ 06:08:53 starting objspace/std/test [5 started in total] __ interpreter/test [4 done in total, somefailed=False] _______________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 233 items interpreter\test\test_app_main.py sss interpreter\test\test_appinterp.py . interpreter\test\test_argument.py ............... interpreter\test\test_code.py ........... interpreter\test\test_compiler.py .......................s.................................. interpreter\test\test_exceptcomp.py ......... interpreter\test\test_executioncontext.py .... interpreter\test\test_extmodules.py s interpreter\test\test_gateway.py ....... interpreter\test\test_interpreter.py .............. interpreter\test\test_mixedmodule.py ssss interpreter\test\test_module.py .................... interpreter\test\test_pyframe.py ..... interpreter\test\test_special.py ... interpreter\test\test_syntax.py ..................................... interpreter\test\test_typedef.py ........... interpreter\test\test_zzpickle_and_slow.py .............................. =================== 224 passed, 9 skipped in 60.86 seconds ==================== ++ 06:09:48 starting module/__builtin__/test [6 started in total] __ module/__builtin__/test [5 done in total, somefailed=False] ________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 282 items module\__builtin__\test\test_abstractinst.py ........... module\__builtin__\test\test_breakpoint.py ........ module\__builtin__\test\test_builtin.py ....................................................................... module\__builtin__\test\test_construct_singletons.py . module\__builtin__\test\test_descriptor.py ................................... module\__builtin__\test\test_dir.py ........... module\__builtin__\test\test_filter.py ........ module\__builtin__\test\test_filter_pickle.py ..... module\__builtin__\test\test_format.py . module\__builtin__\test\test_functional.py ....................................................................................... module\__builtin__\test\test_map_pickle.py ... module\__builtin__\test\test_minmax.py ....................... module\__builtin__\test\test_rawinput.py .. module\__builtin__\test\test_sum.py . module\__builtin__\test\test_vars.py ... module\__builtin__\test\test_zip.py ........... module\__builtin__\test\test_zip_pickle.py . ========================= 282 passed in 72.41 seconds ========================= ++ 06:11:09 starting module/__pypy__/test [7 started in total] __ module/__pypy__/test [6 done in total, somefailed=True] ____________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 75 items module\__pypy__\test\test_builders.py ..... module\__pypy__\test\test_bytebuffer.py ... module\__pypy__\test\test_debug.py sssssss module\__pypy__\test\test_identitydict.py ...... module\__pypy__\test\test_intop.py ........... module\__pypy__\test\test_locals2fast.py ..... module\__pypy__\test\test_magic.py .......... module\__pypy__\test\test_newmemoryview.py ........ module\__pypy__\test\test_os.py F module\__pypy__\test\test_signal.py ..... module\__pypy__\test\test_special.py sssssssssss..s ================================== FAILURES =================================== _________________________ AppTestOs.test_real_getenv __________________________ self = <CallInfo when='call' exception: Subprocess failed with exit code 1: Traceback (most recent call last): File "d:\sy...on-py3.11-880\src.py", line 86, in test_real_getenv assert __pypy__.os.real_getenv(key) is None AssertionError > func = <function <lambda> at 0x00000225def42020>, when = 'call' def __init__(self, func, when): #: context of invocation: one of "setup", "call", #: "teardown", "memocollect" self.when = when self.start = time() try: > self.result = func() ..\_pytest\runner.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > return CallInfo(lambda: ihook(item=item, **kwds), when=when) ..\_pytest\runner.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'> kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_real_getenv'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_real_getenv'>} def __call__(self, **kwargs): assert not self.is_historic() > return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) ..\_pytest\vendored_packages\pluggy.py:724: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0x00000225db0be8a8> hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_real_getenv'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_real_getenv'>} def _hookexec(self, hook, methods, kwargs): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook, methods, kwargs) ..\_pytest\vendored_packages\pluggy.py:338: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_real_getenv'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_real_getenv'>} self._inner_hookexec = lambda hook, methods, kwargs: \ > _MultiCall(methods, kwargs, hook.spec_opts).execute() ..\_pytest\vendored_packages\pluggy.py:333: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_real_getenv'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: > return _wrapped_call(hook_impl.function(*args), self.execute) ..\_pytest\vendored_packages\pluggy.py:595: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ wrap_controller = <generator object pytest_runtest_call at 0x00000225def18890> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i...eal_getenv'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def _wrapped_call(wrap_controller, func): """ Wrap calling to a function with a generator which needs to yield exactly once. The yield point will trigger calling the wrapped function and return its _CallOutcome to the yield point. The generator then needs to finish (raise StopIteration) in order for the wrapped call to complete. """ try: next(wrap_controller) # first yield except StopIteration: _raise_wrapfail(wrap_controller, "did not yield") call_outcome = _CallOutcome(func) try: wrap_controller.send(call_outcome) _raise_wrapfail(wrap_controller, "has second yield") except StopIteration: pass > return call_outcome.get_result() ..\_pytest\vendored_packages\pluggy.py:253: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x00000225dc419960> def get_result(self): if self.excinfo is None: return self.result else: ex = self.excinfo if _py3: raise ex[1].with_traceback(ex[2]) > _reraise(*ex) # noqa ..\_pytest\vendored_packages\pluggy.py:279: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x00000225dc419960> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i...eal_getenv'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def __init__(self, func): try: > self.result = func() ..\_pytest\vendored_packages\pluggy.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_real_getenv'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: return _wrapped_call(hook_impl.function(*args), self.execute) > res = hook_impl.function(*args) ..\_pytest\vendored_packages\pluggy.py:596: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = <AppTestMethod 'test_real_getenv'> def pytest_runtest_call(item): try: > item.runtest() ..\_pytest\runner.py:91: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <AppTestMethod 'test_real_getenv'> def runtest(self): target = self.obj src = extract_docstring_if_empty_function(target.im_func) space = target.im_self.space if self.config.option.runappdirect: appexec_definitions = self.parent.obj.__dict__ spaceconfig = getattr(self.parent.obj, 'spaceconfig', None) usemodules = spaceconfig.get('usemodules') if spaceconfig else None return run_with_python(self.config.option.python, src, usemodules, > **appexec_definitions) tool\pytest\apptest.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ python_ = 'd:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\pypy\\goal\\pypy3.11-c.exe' target_ = <function test_real_getenv at 0x00000225deeaa458> usemodules = ['__pypy__'], definitions = {}, defs = [] def run_with_python(python_, target_, usemodules, **definitions): if python_ is None: py.test.skip("Cannot find the default python3 interpreter to run with -A") defs = [] for symbol, value in sorted(definitions.items()): if isinstance(value, tuple) and isinstance(value[0], py.code.Source): code, args = value defs.append(str(code)) arg_repr = [] for arg in args: if isinstance(arg, types.FunctionType): arg_repr.append(arg.__name__) elif isinstance(arg, types.MethodType): arg_repr.append(arg.__name__) else: arg_repr.append(py3k_repr(arg)) args = ', '.join(arg_repr) defs.append("self.%s = anonymous(%s)\n" % (symbol, args)) elif isinstance(value, types.MethodType): # "def w_method(self)" code = py.code.Code(value) defs.append(str(code.source())) defs.append("type(self).%s = %s\n" % (symbol, value.__name__)) elif isinstance(value, types.ModuleType): name = value.__name__ defs.append("import %s; self.%s = %s\n" % (name, symbol, name)) elif isinstance(value, (str, unicode, int, long, float, list, tuple, dict)) or value is None: defs.append("self.%s = %s\n" % (symbol, py3k_repr(value))) check_usemodules = '' if usemodules: usemodules = [_rename_module(name) for name in usemodules] check_usemodules = """\ missing = set(%r).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing""" % usemodules source = list(py.code.Source(target_)) while source[0].startswith(('@py.test.mark.', '@pytest.mark.')): source.pop(0) source = source[1:] pyfile = udir.join('src.py') if isinstance(target_, str): # Special case of a docstring; the function name is the first word. target_name = target_.split('(', 1)[0] else: target_name = target_.__name__ with pyfile.open('w') as f: f.write(helpers % (pypyroot, check_usemodules)) f.write('\n'.join(defs)) f.write('def %s():\n' % target_name) f.write('\n'.join(source)) f.write("\ntry:\n %s()\n" % target_name) f.write('finally:\n print("===aefwuiheawiu===")') helper_dir = os.path.join(pypydir, 'tool', 'cpyext') env = os.environ.copy() env['PYTHONPATH'] = helper_dir res, stdout, stderr = run_subprocess( python_, [str(pyfile)], env=env) print pyfile.read() print "from", str(pyfile) print >> sys.stdout, stdout print >> sys.stderr, stderr if res == 81: py.test.skip('%r was not compiled w/ required usemodules: %r' % (python_, usemodules)) elif res != 0: raise AssertionError( > "Subprocess failed with exit code %s:\n%s" % (res, stderr)) E AssertionError: Subprocess failed with exit code 1: E Traceback (most recent call last): E File "d:\systemtemp\pytest\usession-py3.11-880\src.py", line 88, in <module> E test_real_getenv() E File "d:\systemtemp\pytest\usession-py3.11-880\src.py", line 86, in test_real_getenv E assert __pypy__.os.real_getenv(key) is None E AssertionError tool\pytest\apptest.py:239: AssertionError ---------------------------- Captured stdout call ----------------------------- # -*- encoding: utf-8 -*- if 1: import sys sys.path.append('d:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build') missing = set(['__pypy__']).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing def skip(message): print(message) raise SystemExit(0) __builtins__.skip = skip __builtins__.py3k_skip = skip class ExceptionWrapper: pass def raises(exc, *args, **kwargs): if not args: return RaisesContext(exc) func = args[0] args = args[1:] import os try: if isinstance(func, str): if func.startswith((' ', os.linesep, '\n')): # it's probably an indented block, so we prefix if True: # to avoid SyntaxError func = "if True:\n" + func frame = sys._getframe(1) exec(func, frame.f_globals, frame.f_locals) else: func(*args, **kwargs) except exc as e: res = ExceptionWrapper() res.value = e res.traceback = e.__traceback__ return res else: raise AssertionError("DID NOT RAISE") class RaisesContext(object): def __init__(self, expected_exception): self.expected_exception = expected_exception self.excinfo = None def __enter__(self): return self def __exit__(self, *tp): __tracebackhide__ = True if tp[0] is None: raise AssertionError("DID NOT RAISE") self.value = tp[1] return issubclass(tp[0], self.expected_exception) __builtins__.raises = raises class Test: pass self = Test() def test_real_getenv(): import __pypy__.os import os key = 'UNLIKELY_SET' assert key not in os.environ os.putenv(key, '42') # this one skips Python cache assert __pypy__.os.real_getenv(key) == '42' # this one can only see things set on interpter start (cached) assert os.getenv(key) is None os.unsetenv(key) assert __pypy__.os.real_getenv(key) is None try: test_real_getenv() finally: print("===aefwuiheawiu===") from d:\systemtemp\pytest\usession-py3.11-880\src.py ===aefwuiheawiu=== ---------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "d:\systemtemp\pytest\usession-py3.11-880\src.py", line 88, in <module> test_real_getenv() File "d:\systemtemp\pytest\usession-py3.11-880\src.py", line 86, in test_real_getenv assert __pypy__.os.real_getenv(key) is None AssertionError =========================== short test summary info =========================== FAIL module\__pypy__\test\test_os.py::AppTestOs::()::test_real_getenv ============== 1 failed, 55 passed, 19 skipped in 16.58 seconds =============== ++ 06:11:29 starting module/_abc/test [8 started in total] __ module/_abc/test [7 done in total, somefailed=False] _______________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 3 items module\_abc\test\test_abc.py ... ========================== 3 passed in 0.75 seconds =========================== ++ 06:11:34 starting module/_ast/test [9 started in total] __ module/_ast/test [8 done in total, somefailed=False] _______________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 52 items module\_ast\test\test_ast.py .................................................... ========================= 52 passed in 13.02 seconds ========================== ++ 06:11:51 starting module/_cffi_backend/test [10 started in total] __ objspace/std/test [9 done in total, somefailed=False] ______________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 1524 items objspace\std\test\test_bytearrayobject.py ..................................................................................... objspace\std\test\test_bytesobject.py .............................................................................................. objspace\std\test\test_celldict.py ......sss objspace\std\test\test_dictmultiobject.py .............................................................................................................................................ssssssss objspace\std\test\test_dictproxy.py ................ objspace\std\test\test_floatobject.py ................................................. objspace\std\test\test_identitydict.py sssss objspace\std\test\test_identityset.py sssssss objspace\std\test\test_index.py ................................... objspace\std\test\test_intobject.py .......................................................................................................................... objspace\std\test\test_jsondict.py .......... objspace\std\test\test_kwargsdict.py sssssss objspace\std\test\test_listobject.py ................................................................................... objspace\std\test\test_longobject.py ...................................s........... objspace\std\test\test_mapdict.py ..................ssssssssssssssssssssssssssssssssssssssssssssssss objspace\std\test\test_memoryobject.py .......................................... objspace\std\test\test_methodcache.py sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss objspace\std\test\test_newformat.py ............................................................... objspace\std\test\test_obj.py ...................................... objspace\std\test\test_prebuiltint.py ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss objspace\std\test\test_proxy.py ssssssssssss objspace\std\test\test_proxy_function.py ........ objspace\std\test\test_proxy_internals.py s...... objspace\std\test\test_proxy_iter.py . objspace\std\test\test_proxy_object.py .......... objspace\std\test\test_proxy_usercreated.py s objspace\std\test\test_setobject.py .......................................................................................... objspace\std\test\test_sliceobject.py ........ objspace\std\test\test_smalllongobject.py ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss objspace\std\test\test_specialisedtupleobject.py ................... objspace\std\test\test_typeobject.py sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.....sssssssssssss objspace\std\test\test_unicodeobject.py .... objspace\std\test\test_userobject.py . ================= 1000 passed, 524 skipped in 280.33 seconds ================== ++ 06:13:43 starting module/_codecs/test [11 started in total] __ module/_codecs/test [10 done in total, somefailed=True] ____________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 89 items module\_codecs\test\test_codecs.py ...........................................................................F............. ================================== FAILURES =================================== _____________________ AppTestPartialEvaluation.test_mbcs ______________________ self = <CallInfo when='call' exception: Subprocess failed with exit code 1: Traceback (most recent call last): File "d:\sy...sion-py3.11-884\src.py", line 93, in test_mbcs assert toencode[0].encode('mbcs') == toencode[1] AssertionError > func = <function <lambda> at 0x0000019e5ccffbc8>, when = 'call' def __init__(self, func, when): #: context of invocation: one of "setup", "call", #: "teardown", "memocollect" self.when = when self.start = time() try: > self.result = func() ..\_pytest\runner.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > return CallInfo(lambda: ihook(item=item, **kwds), when=when) ..\_pytest\runner.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'> kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_mbcs'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_mbcs'>} def __call__(self, **kwargs): assert not self.is_historic() > return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) ..\_pytest\vendored_packages\pluggy.py:724: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0x0000019e5895e870> hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_mbcs'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_mbcs'>} def _hookexec(self, hook, methods, kwargs): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook, methods, kwargs) ..\_pytest\vendored_packages\pluggy.py:338: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_mbcs'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_mbcs'>} self._inner_hookexec = lambda hook, methods, kwargs: \ > _MultiCall(methods, kwargs, hook.spec_opts).execute() ..\_pytest\vendored_packages\pluggy.py:333: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_mbcs'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: > return _wrapped_call(hook_impl.function(*args), self.execute) ..\_pytest\vendored_packages\pluggy.py:595: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ wrap_controller = <generator object pytest_runtest_call at 0x0000019e5922e390> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i...'test_mbcs'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def _wrapped_call(wrap_controller, func): """ Wrap calling to a function with a generator which needs to yield exactly once. The yield point will trigger calling the wrapped function and return its _CallOutcome to the yield point. The generator then needs to finish (raise StopIteration) in order for the wrapped call to complete. """ try: next(wrap_controller) # first yield except StopIteration: _raise_wrapfail(wrap_controller, "did not yield") call_outcome = _CallOutcome(func) try: wrap_controller.send(call_outcome) _raise_wrapfail(wrap_controller, "has second yield") except StopIteration: pass > return call_outcome.get_result() ..\_pytest\vendored_packages\pluggy.py:253: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x0000019e5ca76e20> def get_result(self): if self.excinfo is None: return self.result else: ex = self.excinfo if _py3: raise ex[1].with_traceback(ex[2]) > _reraise(*ex) # noqa ..\_pytest\vendored_packages\pluggy.py:279: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x0000019e5ca76e20> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i...'test_mbcs'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def __init__(self, func): try: > self.result = func() ..\_pytest\vendored_packages\pluggy.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_mbcs'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: return _wrapped_call(hook_impl.function(*args), self.execute) > res = hook_impl.function(*args) ..\_pytest\vendored_packages\pluggy.py:596: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = <AppTestMethod 'test_mbcs'> def pytest_runtest_call(item): try: > item.runtest() ..\_pytest\runner.py:91: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <AppTestMethod 'test_mbcs'> def runtest(self): target = self.obj src = extract_docstring_if_empty_function(target.im_func) space = target.im_self.space if self.config.option.runappdirect: appexec_definitions = self.parent.obj.__dict__ spaceconfig = getattr(self.parent.obj, 'spaceconfig', None) usemodules = spaceconfig.get('usemodules') if spaceconfig else None return run_with_python(self.config.option.python, src, usemodules, > **appexec_definitions) tool\pytest\apptest.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ python_ = 'd:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\pypy\\goal\\pypy3.11-c.exe' target_ = <function test_mbcs at 0x0000019e5c9c9970>, usemodules = ['array'] definitions = {'appdirect': True}, defs = ['self.appdirect = True\n'] symbol = 'appdirect', value = True def run_with_python(python_, target_, usemodules, **definitions): if python_ is None: py.test.skip("Cannot find the default python3 interpreter to run with -A") defs = [] for symbol, value in sorted(definitions.items()): if isinstance(value, tuple) and isinstance(value[0], py.code.Source): code, args = value defs.append(str(code)) arg_repr = [] for arg in args: if isinstance(arg, types.FunctionType): arg_repr.append(arg.__name__) elif isinstance(arg, types.MethodType): arg_repr.append(arg.__name__) else: arg_repr.append(py3k_repr(arg)) args = ', '.join(arg_repr) defs.append("self.%s = anonymous(%s)\n" % (symbol, args)) elif isinstance(value, types.MethodType): # "def w_method(self)" code = py.code.Code(value) defs.append(str(code.source())) defs.append("type(self).%s = %s\n" % (symbol, value.__name__)) elif isinstance(value, types.ModuleType): name = value.__name__ defs.append("import %s; self.%s = %s\n" % (name, symbol, name)) elif isinstance(value, (str, unicode, int, long, float, list, tuple, dict)) or value is None: defs.append("self.%s = %s\n" % (symbol, py3k_repr(value))) check_usemodules = '' if usemodules: usemodules = [_rename_module(name) for name in usemodules] check_usemodules = """\ missing = set(%r).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing""" % usemodules source = list(py.code.Source(target_)) while source[0].startswith(('@py.test.mark.', '@pytest.mark.')): source.pop(0) source = source[1:] pyfile = udir.join('src.py') if isinstance(target_, str): # Special case of a docstring; the function name is the first word. target_name = target_.split('(', 1)[0] else: target_name = target_.__name__ with pyfile.open('w') as f: f.write(helpers % (pypyroot, check_usemodules)) f.write('\n'.join(defs)) f.write('def %s():\n' % target_name) f.write('\n'.join(source)) f.write("\ntry:\n %s()\n" % target_name) f.write('finally:\n print("===aefwuiheawiu===")') helper_dir = os.path.join(pypydir, 'tool', 'cpyext') env = os.environ.copy() env['PYTHONPATH'] = helper_dir res, stdout, stderr = run_subprocess( python_, [str(pyfile)], env=env) print pyfile.read() print "from", str(pyfile) print >> sys.stdout, stdout print >> sys.stderr, stderr if res == 81: py.test.skip('%r was not compiled w/ required usemodules: %r' % (python_, usemodules)) elif res != 0: raise AssertionError( > "Subprocess failed with exit code %s:\n%s" % (res, stderr)) E AssertionError: Subprocess failed with exit code 1: E Traceback (most recent call last): E File "d:\systemtemp\pytest\usession-py3.11-884\src.py", line 98, in <module> E test_mbcs() E File "d:\systemtemp\pytest\usession-py3.11-884\src.py", line 93, in test_mbcs E assert toencode[0].encode('mbcs') == toencode[1] E AssertionError tool\pytest\apptest.py:239: AssertionError ---------------------------- Captured stdout call ----------------------------- # -*- encoding: utf-8 -*- if 1: import sys sys.path.append('d:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build') missing = set(['array']).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing def skip(message): print(message) raise SystemExit(0) __builtins__.skip = skip __builtins__.py3k_skip = skip class ExceptionWrapper: pass def raises(exc, *args, **kwargs): if not args: return RaisesContext(exc) func = args[0] args = args[1:] import os try: if isinstance(func, str): if func.startswith((' ', os.linesep, '\n')): # it's probably an indented block, so we prefix if True: # to avoid SyntaxError func = "if True:\n" + func frame = sys._getframe(1) exec(func, frame.f_globals, frame.f_locals) else: func(*args, **kwargs) except exc as e: res = ExceptionWrapper() res.value = e res.traceback = e.__traceback__ return res else: raise AssertionError("DID NOT RAISE") class RaisesContext(object): def __init__(self, expected_exception): self.expected_exception = expected_exception self.excinfo = None def __enter__(self): return self def __exit__(self, *tp): __tracebackhide__ = True if tp[0] is None: raise AssertionError("DID NOT RAISE") self.value = tp[1] return issubclass(tp[0], self.expected_exception) __builtins__.raises = raises class Test: pass self = Test() self.appdirect = True def test_mbcs(): import sys if sys.platform != 'win32': return # sanity test from _codecs import mbcs_encode, mbcs_decode toencode = u'caf\xe9', 'caf\xe9' try: # test for non-latin1 codepage, more general test needed import winreg key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r'System\CurrentControlSet\Control\Nls\CodePage') if winreg.QueryValueEx(key, 'ACP')[0] == u'1255': # non-latin1 toencode = u'caf\xbf',b'caf\xbf' except: assert False, 'cannot test mbcs on this windows system, check code page' assert u'test'.encode('mbcs') == b'test' assert toencode[0].encode('mbcs') == toencode[1] raises(UnicodeEncodeError, u'\u040a'.encode, 'mbcs') assert b'cafx\e9'.decode('mbcs') == u'cafx\e9' assert b'\xe6'.decode('mbcs') == u'\xe6' try: test_mbcs() finally: print("===aefwuiheawiu===") from d:\systemtemp\pytest\usession-py3.11-884\src.py ===aefwuiheawiu=== ---------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "d:\systemtemp\pytest\usession-py3.11-884\src.py", line 98, in <module> test_mbcs() File "d:\systemtemp\pytest\usession-py3.11-884\src.py", line 93, in test_mbcs assert toencode[0].encode('mbcs') == toencode[1] AssertionError =========================== short test summary info =========================== FAIL module\_codecs\test\test_codecs.py::AppTestPartialEvaluation::()::test_mbcs ==================== 1 failed, 88 passed in 22.59 seconds ===================== ++ 06:14:12 starting module/_collections/test [12 started in total] __ module/_collections/test [11 done in total, somefailed=False] ______________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 0.01 seconds ========================= ++ 06:14:16 starting module/_continuation/test [13 started in total] __ module/_continuation/test [12 done in total, somefailed=False] _____________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 32 items / 3 skipped module\_continuation\test\test_generator.py .... module\_continuation\test\test_greenlet.py ............................ ==================== 32 passed, 3 skipped in 8.70 seconds ===================== ++ 06:14:29 starting module/_cppyy/test [14 started in total] __ module/_cffi_backend/test [13 done in total, somefailed=False] _____________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 443 items module\_cffi_backend\test\test_c.py ....................................................................................s................................................................................................................................................ module\_cffi_backend\test\test_fastpath.py .................. module\_cffi_backend\test\test_ffi_obj.py ............................................. module\_cffi_backend\test\test_re_python.py .................s.. module\_cffi_backend\test\test_recompiler.py ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss module\_cffi_backend\test\test_unicode_literals.py ....... ================== 317 passed, 126 skipped in 150.89 seconds ================== ++ 06:14:31 starting module/_csv/test [15 started in total] __ module/_cppyy/test [14 done in total, somefailed=False] ____________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 0.06 seconds ========================= ++ 06:14:32 starting module/_demo/test [16 started in total] __ module/_demo/test [15 done in total, somefailed=False] _____________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 1 items module\_demo\test\test_sieve.py s ========================== 1 skipped in 0.29 seconds ========================== ++ 06:14:36 starting module/_hpy_universal/test/_vendored [17 started in total] __ module/_hpy_universal/test/_vendored [16 done in total, somefailed=False] __ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 0.04 seconds ========================= ++ 06:14:41 starting module/_hpy_universal/test/pypy [18 started in total] __ module/_csv/test [17 done in total, somefailed=False] ______________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 33 items module\_csv\test\test_dialect.py .............. module\_csv\test\test_reader.py ............. module\_csv\test\test_writer.py ...... ========================== 33 passed in 7.24 seconds ========================== ++ 06:14:44 starting module/_io/test [19 started in total] __ module/_hpy_universal/test/pypy [18 done in total, somefailed=False] _______ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 0.01 seconds ========================= ++ 06:14:44 starting module/_jitlog/test [20 started in total] __ module/_jitlog/test [19 done in total, somefailed=False] ___________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 1 items module\_jitlog\test\test__jitlog.py . ========================== 1 passed in 0.32 seconds =========================== ++ 06:14:49 starting module/_locale/test [21 started in total] __ module/_locale/test [20 done in total, somefailed=False] ___________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 15 items module\_locale\test\test_locale.py ............... ========================== 15 passed in 3.73 seconds ========================== ++ 06:14:58 starting module/_lsprof/test [22 started in total] __ module/_lsprof/test [21 done in total, somefailed=False] ___________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 6 items module\_lsprof\test\test_cprofile.py ...... ========================== 6 passed in 2.47 seconds =========================== ++ 06:15:05 starting module/_md5/test [23 started in total] __ module/_md5/test [22 done in total, somefailed=False] ______________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 8 items module\_md5\test\test_md5.py ........ ========================== 8 passed in 1.98 seconds =========================== ++ 06:15:10 starting module/_minimal_curses/test [24 started in total] __ module/_minimal_curses/test [23 done in total, somefailed=False] ___________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 0.02 seconds ========================= ++ 06:15:15 starting module/_multibytecodec/test [25 started in total] __ module/_multibytecodec/test [24 done in total, somefailed=False] ___________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 3 items module\_multibytecodec\test\test_multibtye_codecs.py ... ========================== 3 passed in 0.93 seconds =========================== ++ 06:15:20 starting module/_multiprocessing/test [26 started in total] __ module/_io/test [25 done in total, somefailed=False] _______________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 141 items module\_io\test\test_bufferedio.py .................................................s..................................................... module\_io\test\test_fileio.py ............................... module\_io\test\test_win32consoleio.py ......s =================== 139 passed, 2 skipped in 34.45 seconds ==================== ++ 06:15:22 starting module/_opcode/test [27 started in total] __ module/_opcode/test [26 done in total, somefailed=False] ___________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 0.01 seconds ========================= ++ 06:15:26 starting module/_pickle/test [28 started in total] __ module/_pickle/test [27 done in total, somefailed=False] ___________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 0.01 seconds ========================= ++ 06:15:29 starting module/_pickle_support/test [29 started in total] __ module/_multiprocessing/test [28 done in total, somefailed=False] __________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 10 items module\_multiprocessing\test\test_semaphore.py sssssssss module\_multiprocessing\test\test_win32.py . ===================== 1 passed, 9 skipped in 4.21 seconds ===================== ++ 06:15:29 starting module/_posixsubprocess/test [30 started in total] __ module/_posixsubprocess/test [29 done in total, somefailed=True] ___________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items / 1 errors =================================== ERRORS ==================================== ___ ERROR collecting pypy/module/_posixsubprocess/test/test_ztranslation.py ___ ..\py\_path\local.py:650: in pyimport __import__(modname) module\_posixsubprocess\test\__init__.py:5: in <module> pytest.skip("not on windows", allow_module_level=True) E TypeError: skip() got an unexpected keyword argument 'allow_module_level' =========================== 1 error in 0.10 seconds =========================== ++ 06:15:33 starting module/_pypyjson/test [31 started in total] __ module/_pickle_support/test [30 done in total, somefailed=False] ___________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 0.01 seconds ========================= ++ 06:15:33 starting module/_random/test [32 started in total] __ module/_random/test [31 done in total, somefailed=False] ___________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 12 items module\_random\test\test_random.py ............ ========================== 12 passed in 2.94 seconds ========================== ++ 06:15:40 starting module/_rawffi/alt/test [33 started in total] __ module/_pypyjson/test [32 done in total, somefailed=False] _________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 29 items module\_pypyjson\test\test__pypyjson.py ............................. ========================== 29 passed in 6.68 seconds ========================== ++ 06:15:43 starting module/_rawffi/test [34 started in total] __ module/_rawffi/alt/test [33 done in total, somefailed=False] _______________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 61 items module\_rawffi\alt\test\test_ffitype.py ..... module\_rawffi\alt\test\test_funcptr.py ....ss.................................... module\_rawffi\alt\test\test_struct.py .............. ==================== 59 passed, 2 skipped in 19.09 seconds ==================== ++ 06:16:04 starting module/_socket/test [35 started in total] __ module/_socket/test [34 done in total, somefailed=False] ___________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 1.80 seconds ========================= ++ 06:16:10 starting module/_sre/test [36 started in total] __ module/_rawffi/test [35 done in total, somefailed=False] ___________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 79 items module\_rawffi\test\test__rawffi.py ..................................................................... module\_rawffi\test\test_exit.py . module\_rawffi\test\test_nested.py ...... module\_rawffi\test\test_tracker.py sss ==================== 76 passed, 3 skipped in 21.44 seconds ==================== ++ 06:16:12 starting module/_vmprof/test [37 started in total] __ module/_vmprof/test [36 done in total, somefailed=False] ___________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 0.01 seconds ========================= ++ 06:16:15 starting module/_warnings/test [38 started in total] __ module/_warnings/test [37 done in total, somefailed=False] _________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 0.01 seconds ========================= ++ 06:16:20 starting module/_weakref/test [39 started in total] __ module/_weakref/test [38 done in total, somefailed=False] __________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 0.00 seconds ========================= ++ 06:16:23 starting module/_winreg/test [40 started in total] __ module/_sre/test [39 done in total, somefailed=False] ______________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 94 items module\_sre\test\test_app_sre.py ..............................ssssssssssssssssssssssssssssssssssss module\_sre\test\test_sre_buf.py ............................ =================== 58 passed, 36 skipped in 16.06 seconds ==================== ++ 06:16:31 starting module/array/test [41 started in total] __ module/_winreg/test [40 done in total, somefailed=True] ____________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 22 items module\_winreg\test\test_winreg.py ..F................... ================================== FAILURES =================================== ________________________ AppTestFfi.test_simple_write _________________________ self = <CallInfo when='call' exception: Subprocess failed with exit code 1: Traceback (most recent call last): File "d:\sy...y", line 91, in test_simple_write assert QueryValue(self.root_key, self.test_key_name) == value AssertionError > func = <function <lambda> at 0x00000227a37863e0>, when = 'call' def __init__(self, func, when): #: context of invocation: one of "setup", "call", #: "teardown", "memocollect" self.when = when self.start = time() try: > self.result = func() ..\_pytest\runner.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > return CallInfo(lambda: ihook(item=item, **kwds), when=when) ..\_pytest\runner.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'> kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_simple_write'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_simple_write'>} def __call__(self, **kwargs): assert not self.is_historic() > return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) ..\_pytest\vendored_packages\pluggy.py:724: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0x000002279fa5e8a8> hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_simple_write'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_simple_write'>} def _hookexec(self, hook, methods, kwargs): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook, methods, kwargs) ..\_pytest\vendored_packages\pluggy.py:338: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_simple_write'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_simple_write'>} self._inner_hookexec = lambda hook, methods, kwargs: \ > _MultiCall(methods, kwargs, hook.spec_opts).execute() ..\_pytest\vendored_packages\pluggy.py:333: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_simple_write'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: > return _wrapped_call(hook_impl.function(*args), self.execute) ..\_pytest\vendored_packages\pluggy.py:595: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ wrap_controller = <generator object pytest_runtest_call at 0x00000227a37005e8> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i...mple_write'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def _wrapped_call(wrap_controller, func): """ Wrap calling to a function with a generator which needs to yield exactly once. The yield point will trigger calling the wrapped function and return its _CallOutcome to the yield point. The generator then needs to finish (raise StopIteration) in order for the wrapped call to complete. """ try: next(wrap_controller) # first yield except StopIteration: _raise_wrapfail(wrap_controller, "did not yield") call_outcome = _CallOutcome(func) try: wrap_controller.send(call_outcome) _raise_wrapfail(wrap_controller, "has second yield") except StopIteration: pass > return call_outcome.get_result() ..\_pytest\vendored_packages\pluggy.py:253: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x00000227a37a46e0> def get_result(self): if self.excinfo is None: return self.result else: ex = self.excinfo if _py3: raise ex[1].with_traceback(ex[2]) > _reraise(*ex) # noqa ..\_pytest\vendored_packages\pluggy.py:279: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x00000227a37a46e0> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i...mple_write'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def __init__(self, func): try: > self.result = func() ..\_pytest\vendored_packages\pluggy.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_simple_write'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: return _wrapped_call(hook_impl.function(*args), self.execute) > res = hook_impl.function(*args) ..\_pytest\vendored_packages\pluggy.py:596: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = <AppTestMethod 'test_simple_write'> def pytest_runtest_call(item): try: > item.runtest() ..\_pytest\runner.py:91: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <AppTestMethod 'test_simple_write'> def runtest(self): target = self.obj src = extract_docstring_if_empty_function(target.im_func) space = target.im_self.space if self.config.option.runappdirect: appexec_definitions = self.parent.obj.__dict__ spaceconfig = getattr(self.parent.obj, 'spaceconfig', None) usemodules = spaceconfig.get('usemodules') if spaceconfig else None return run_with_python(self.config.option.python, src, usemodules, > **appexec_definitions) tool\pytest\apptest.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ python_ = 'd:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\pypy\\goal\\pypy3.11-c.exe' target_ = <function test_simple_write at 0x00000227a3786638> usemodules = ['winreg'] definitions = {'canSaveKey': False, 'root_key': 18446744071562067969L, 'runappdirect': True, 'test_data': [(u'Int Value', 4275878552...path%', 2), (u'Multi Str', [u'Several', u'string', u'values'], 7), (u'Multi Str Empty', [u'', u'', u''], 7), ...], ...} defs = ['self.canSaveKey = False\n', 'self.root_key = 18446744071562067969\n', 'self.runappdirect = True\n', "self.test_data ...- Delete Me [7100]'\n", "self.tmpfilename = 'd:\\\\systemtemp\\\\pytest\\\\usession-py3.11-913\\\\winreg-temp'\n", ...] symbol = 'win64_machine', value = True def run_with_python(python_, target_, usemodules, **definitions): if python_ is None: py.test.skip("Cannot find the default python3 interpreter to run with -A") defs = [] for symbol, value in sorted(definitions.items()): if isinstance(value, tuple) and isinstance(value[0], py.code.Source): code, args = value defs.append(str(code)) arg_repr = [] for arg in args: if isinstance(arg, types.FunctionType): arg_repr.append(arg.__name__) elif isinstance(arg, types.MethodType): arg_repr.append(arg.__name__) else: arg_repr.append(py3k_repr(arg)) args = ', '.join(arg_repr) defs.append("self.%s = anonymous(%s)\n" % (symbol, args)) elif isinstance(value, types.MethodType): # "def w_method(self)" code = py.code.Code(value) defs.append(str(code.source())) defs.append("type(self).%s = %s\n" % (symbol, value.__name__)) elif isinstance(value, types.ModuleType): name = value.__name__ defs.append("import %s; self.%s = %s\n" % (name, symbol, name)) elif isinstance(value, (str, unicode, int, long, float, list, tuple, dict)) or value is None: defs.append("self.%s = %s\n" % (symbol, py3k_repr(value))) check_usemodules = '' if usemodules: usemodules = [_rename_module(name) for name in usemodules] check_usemodules = """\ missing = set(%r).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing""" % usemodules source = list(py.code.Source(target_)) while source[0].startswith(('@py.test.mark.', '@pytest.mark.')): source.pop(0) source = source[1:] pyfile = udir.join('src.py') if isinstance(target_, str): # Special case of a docstring; the function name is the first word. target_name = target_.split('(', 1)[0] else: target_name = target_.__name__ with pyfile.open('w') as f: f.write(helpers % (pypyroot, check_usemodules)) f.write('\n'.join(defs)) f.write('def %s():\n' % target_name) f.write('\n'.join(source)) f.write("\ntry:\n %s()\n" % target_name) f.write('finally:\n print("===aefwuiheawiu===")') helper_dir = os.path.join(pypydir, 'tool', 'cpyext') env = os.environ.copy() env['PYTHONPATH'] = helper_dir res, stdout, stderr = run_subprocess( python_, [str(pyfile)], env=env) print pyfile.read() print "from", str(pyfile) print >> sys.stdout, stdout print >> sys.stderr, stderr if res == 81: py.test.skip('%r was not compiled w/ required usemodules: %r' % (python_, usemodules)) elif res != 0: raise AssertionError( > "Subprocess failed with exit code %s:\n%s" % (res, stderr)) E AssertionError: Subprocess failed with exit code 1: E Traceback (most recent call last): E File "d:\systemtemp\pytest\usession-py3.11-913\src.py", line 93, in <module> E test_simple_write() E File "d:\systemtemp\pytest\usession-py3.11-913\src.py", line 91, in test_simple_write E assert QueryValue(self.root_key, self.test_key_name) == value E AssertionError tool\pytest\apptest.py:239: AssertionError ---------------------------- Captured stdout call ----------------------------- # -*- encoding: utf-8 -*- if 1: import sys sys.path.append('d:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build') missing = set(['winreg']).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing def skip(message): print(message) raise SystemExit(0) __builtins__.skip = skip __builtins__.py3k_skip = skip class ExceptionWrapper: pass def raises(exc, *args, **kwargs): if not args: return RaisesContext(exc) func = args[0] args = args[1:] import os try: if isinstance(func, str): if func.startswith((' ', os.linesep, '\n')): # it's probably an indented block, so we prefix if True: # to avoid SyntaxError func = "if True:\n" + func frame = sys._getframe(1) exec(func, frame.f_globals, frame.f_locals) else: func(*args, **kwargs) except exc as e: res = ExceptionWrapper() res.value = e res.traceback = e.__traceback__ return res else: raise AssertionError("DID NOT RAISE") class RaisesContext(object): def __init__(self, expected_exception): self.expected_exception = expected_exception self.excinfo = None def __enter__(self): return self def __exit__(self, *tp): __tracebackhide__ = True if tp[0] is None: raise AssertionError("DID NOT RAISE") self.value = tp[1] return issubclass(tp[0], self.expected_exception) __builtins__.raises = raises class Test: pass self = Test() self.canSaveKey = False self.root_key = 18446744071562067969 self.runappdirect = True self.test_data = [('Int Value', 4275878552, 4,), ('Str Value', 'A string Value', 1,), ('Unicode Value', 'A unicode Value', 1,), ('Str Expand', 'The path is %path%', 2,), ('Multi Str', ['Several', 'string', 'values'], 7,), ('Multi Str Empty', ['', '', ''], 7,), ('Raw None', None, 3,), ('Invalid \udc00', '\udc00', 1,), ('Invalid \ud800', '\ud800', 1,), ('Raw data', b'binary\x00data', 3,)] self.test_key_name = 'SOFTWARE\\Pypy Test Key - Delete Me [7100]' self.tmpfilename = 'd:\\systemtemp\\pytest\\usession-py3.11-913\\winreg-temp' self.win64_machine = True def test_simple_write(): from winreg import SetValue, QueryValue, REG_SZ value = u"Some Default value" SetValue(self.root_key, self.test_key_name, REG_SZ, value) assert QueryValue(self.root_key, self.test_key_name) == value try: test_simple_write() finally: print("===aefwuiheawiu===") from d:\systemtemp\pytest\usession-py3.11-913\src.py ===aefwuiheawiu=== ---------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "d:\systemtemp\pytest\usession-py3.11-913\src.py", line 93, in <module> test_simple_write() File "d:\systemtemp\pytest\usession-py3.11-913\src.py", line 91, in test_simple_write assert QueryValue(self.root_key, self.test_key_name) == value AssertionError =========================== short test summary info =========================== FAIL module\_winreg\test\test_winreg.py::AppTestFfi::()::test_simple_write ===================== 1 failed, 21 passed in 6.20 seconds ===================== ++ 06:16:34 starting module/atexit/test [42 started in total] __ module/atexit/test [41 done in total, somefailed=False] ____________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 0.01 seconds ========================= ++ 06:16:37 starting module/binascii/test [43 started in total] __ module/binascii/test [42 done in total, somefailed=False] __________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 18 items module\binascii\test\test_binascii.py .................. ========================== 18 passed in 4.36 seconds ========================== ++ 06:16:46 starting module/bz2/test [44 started in total] __ module/bz2/test [43 done in total, somefailed=False] _______________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 1 items / 3 skipped module\bz2\test\test_large.py s ========================== 4 skipped in 0.43 seconds ========================== ++ 06:16:50 starting module/cmath/test [45 started in total] __ module/array/test [44 done in total, somefailed=True] ______________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 60 items module\array\test\test_array.py .........................................................F.. ================================== FAILURES =================================== ___________________ AppTestArrayReconstructor.test_unicode ____________________ self = <CallInfo when='call' exception: Subprocess failed with exit code 1: Traceback (most recent call last): File "d:\sy... File "d:\systemtemp\pytest\usession-py3.11-914\src.py", line 93, in test_unicode assert a == b AssertionError > func = <function <lambda> at 0x000001b528437ad8>, when = 'call' def __init__(self, func, when): #: context of invocation: one of "setup", "call", #: "teardown", "memocollect" self.when = when self.start = time() try: > self.result = func() ..\_pytest\runner.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > return CallInfo(lambda: ihook(item=item, **kwds), when=when) ..\_pytest\runner.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'> kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_unicode'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_unicode'>} def __call__(self, **kwargs): assert not self.is_historic() > return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) ..\_pytest\vendored_packages\pluggy.py:724: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0x000001b52465e8a8> hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_unicode'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_unicode'>} def _hookexec(self, hook, methods, kwargs): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook, methods, kwargs) ..\_pytest\vendored_packages\pluggy.py:338: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_unicode'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_unicode'>} self._inner_hookexec = lambda hook, methods, kwargs: \ > _MultiCall(methods, kwargs, hook.spec_opts).execute() ..\_pytest\vendored_packages\pluggy.py:333: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_unicode'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: > return _wrapped_call(hook_impl.function(*args), self.execute) ..\_pytest\vendored_packages\pluggy.py:595: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ wrap_controller = <generator object pytest_runtest_call at 0x000001b525bb2f70> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i...st_unicode'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def _wrapped_call(wrap_controller, func): """ Wrap calling to a function with a generator which needs to yield exactly once. The yield point will trigger calling the wrapped function and return its _CallOutcome to the yield point. The generator then needs to finish (raise StopIteration) in order for the wrapped call to complete. """ try: next(wrap_controller) # first yield except StopIteration: _raise_wrapfail(wrap_controller, "did not yield") call_outcome = _CallOutcome(func) try: wrap_controller.send(call_outcome) _raise_wrapfail(wrap_controller, "has second yield") except StopIteration: pass > return call_outcome.get_result() ..\_pytest\vendored_packages\pluggy.py:253: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000001b524f82560> def get_result(self): if self.excinfo is None: return self.result else: ex = self.excinfo if _py3: raise ex[1].with_traceback(ex[2]) > _reraise(*ex) # noqa ..\_pytest\vendored_packages\pluggy.py:279: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000001b524f82560> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i...st_unicode'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def __init__(self, func): try: > self.result = func() ..\_pytest\vendored_packages\pluggy.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_unicode'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: return _wrapped_call(hook_impl.function(*args), self.execute) > res = hook_impl.function(*args) ..\_pytest\vendored_packages\pluggy.py:596: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = <AppTestMethod 'test_unicode'> def pytest_runtest_call(item): try: > item.runtest() ..\_pytest\runner.py:91: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <AppTestMethod 'test_unicode'> def runtest(self): target = self.obj src = extract_docstring_if_empty_function(target.im_func) space = target.im_self.space if self.config.option.runappdirect: appexec_definitions = self.parent.obj.__dict__ spaceconfig = getattr(self.parent.obj, 'spaceconfig', None) usemodules = spaceconfig.get('usemodules') if spaceconfig else None return run_with_python(self.config.option.python, src, usemodules, > **appexec_definitions) tool\pytest\apptest.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ python_ = 'd:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\pypy\\goal\\pypy3.11-c.exe' target_ = <function test_unicode at 0x000001b52831c980> usemodules = ['array', '_struct'], definitions = {}, defs = [] def run_with_python(python_, target_, usemodules, **definitions): if python_ is None: py.test.skip("Cannot find the default python3 interpreter to run with -A") defs = [] for symbol, value in sorted(definitions.items()): if isinstance(value, tuple) and isinstance(value[0], py.code.Source): code, args = value defs.append(str(code)) arg_repr = [] for arg in args: if isinstance(arg, types.FunctionType): arg_repr.append(arg.__name__) elif isinstance(arg, types.MethodType): arg_repr.append(arg.__name__) else: arg_repr.append(py3k_repr(arg)) args = ', '.join(arg_repr) defs.append("self.%s = anonymous(%s)\n" % (symbol, args)) elif isinstance(value, types.MethodType): # "def w_method(self)" code = py.code.Code(value) defs.append(str(code.source())) defs.append("type(self).%s = %s\n" % (symbol, value.__name__)) elif isinstance(value, types.ModuleType): name = value.__name__ defs.append("import %s; self.%s = %s\n" % (name, symbol, name)) elif isinstance(value, (str, unicode, int, long, float, list, tuple, dict)) or value is None: defs.append("self.%s = %s\n" % (symbol, py3k_repr(value))) check_usemodules = '' if usemodules: usemodules = [_rename_module(name) for name in usemodules] check_usemodules = """\ missing = set(%r).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing""" % usemodules source = list(py.code.Source(target_)) while source[0].startswith(('@py.test.mark.', '@pytest.mark.')): source.pop(0) source = source[1:] pyfile = udir.join('src.py') if isinstance(target_, str): # Special case of a docstring; the function name is the first word. target_name = target_.split('(', 1)[0] else: target_name = target_.__name__ with pyfile.open('w') as f: f.write(helpers % (pypyroot, check_usemodules)) f.write('\n'.join(defs)) f.write('def %s():\n' % target_name) f.write('\n'.join(source)) f.write("\ntry:\n %s()\n" % target_name) f.write('finally:\n print("===aefwuiheawiu===")') helper_dir = os.path.join(pypydir, 'tool', 'cpyext') env = os.environ.copy() env['PYTHONPATH'] = helper_dir res, stdout, stderr = run_subprocess( python_, [str(pyfile)], env=env) print pyfile.read() print "from", str(pyfile) print >> sys.stdout, stdout print >> sys.stderr, stderr if res == 81: py.test.skip('%r was not compiled w/ required usemodules: %r' % (python_, usemodules)) elif res != 0: raise AssertionError( > "Subprocess failed with exit code %s:\n%s" % (res, stderr)) E AssertionError: Subprocess failed with exit code 1: E Traceback (most recent call last): E File "d:\systemtemp\pytest\usession-py3.11-914\src.py", line 95, in <module> E test_unicode() E File "d:\systemtemp\pytest\usession-py3.11-914\src.py", line 93, in test_unicode E assert a == b E AssertionError tool\pytest\apptest.py:239: AssertionError ---------------------------- Captured stdout call ----------------------------- # -*- encoding: utf-8 -*- if 1: import sys sys.path.append('d:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build') missing = set(['array', '_struct']).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing def skip(message): print(message) raise SystemExit(0) __builtins__.skip = skip __builtins__.py3k_skip = skip class ExceptionWrapper: pass def raises(exc, *args, **kwargs): if not args: return RaisesContext(exc) func = args[0] args = args[1:] import os try: if isinstance(func, str): if func.startswith((' ', os.linesep, '\n')): # it's probably an indented block, so we prefix if True: # to avoid SyntaxError func = "if True:\n" + func frame = sys._getframe(1) exec(func, frame.f_globals, frame.f_locals) else: func(*args, **kwargs) except exc as e: res = ExceptionWrapper() res.value = e res.traceback = e.__traceback__ return res else: raise AssertionError("DID NOT RAISE") class RaisesContext(object): def __init__(self, expected_exception): self.expected_exception = expected_exception self.excinfo = None def __enter__(self): return self def __exit__(self, *tp): __tracebackhide__ = True if tp[0] is None: raise AssertionError("DID NOT RAISE") self.value = tp[1] return issubclass(tp[0], self.expected_exception) __builtins__.raises = raises class Test: pass self = Test() def test_unicode(): import array array_reconstructor = array._array_reconstructor UTF16_LE = 18 UTF16_BE = 19 UTF32_LE = 20 UTF32_BE = 21 teststr = "Bonne Journ\xe9e \U0002030a\U00020347" testcases = ( (UTF16_LE, "UTF-16-LE"), (UTF16_BE, "UTF-16-BE"), (UTF32_LE, "UTF-32-LE"), (UTF32_BE, "UTF-32-BE") ) for testcase in testcases: mformat_code, encoding = testcase a = array.array('u', teststr) b = array_reconstructor( array.array, 'u', mformat_code, teststr.encode(encoding)) assert a == b try: test_unicode() finally: print("===aefwuiheawiu===") from d:\systemtemp\pytest\usession-py3.11-914\src.py ===aefwuiheawiu=== ---------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "d:\systemtemp\pytest\usession-py3.11-914\src.py", line 95, in <module> test_unicode() File "d:\systemtemp\pytest\usession-py3.11-914\src.py", line 93, in test_unicode assert a == b AssertionError =========================== short test summary info =========================== FAIL module\array\test\test_array.py::AppTestArrayReconstructor::()::test_unicode ==================== 1 failed, 59 passed in 14.68 seconds ===================== ++ 06:16:51 starting module/cpyext/test/test_api.py [46 started in total] __ module/cmath/test [45 done in total, somefailed=False] _____________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 16 items module\cmath\test\test_cmath.py ................ ========================== 16 passed in 3.81 seconds ========================== ++ 06:16:59 starting module/cpyext/test/test_arraymodule.py [47 started in total] __ module/cpyext/test/test_api.py [46 done in total, somefailed=False] ________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 5.78 seconds ========================= ++ 06:17:02 starting module/cpyext/test/test_async_iter.py [48 started in total] __ module/cpyext/test/test_async_iter.py [47 done in total, somefailed=False] _ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 3 items module\cpyext\test\test_async_iter.py sss ========================== 3 skipped in 6.41 seconds ========================== ++ 06:17:12 starting module/cpyext/test/test_boolobject.py [49 started in total] __ module/cpyext/test/test_boolobject.py [48 done in total, somefailed=False] _ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 3 items module\cpyext\test\test_boolobject.py ... ========================== 3 passed in 34.75 seconds ========================== ++ 06:17:57 starting module/cpyext/test/test_borrow.py [50 started in total] __ module/cpyext/test/test_borrow.py [49 done in total, somefailed=False] _____ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 3 items module\cpyext\test\test_borrow.py ... ========================== 3 passed in 35.68 seconds ========================== ++ 06:18:42 starting module/cpyext/test/test_buffer.py [51 started in total] __ module/cpyext/test/test_buffer.py [50 done in total, somefailed=False] _____ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 5 items module\cpyext\test\test_buffer.py ..... ========================== 5 passed in 57.85 seconds ========================== ++ 06:19:48 starting module/cpyext/test/test_bytearrayobject.py [52 started in total] __ module/cpyext/test/test_arraymodule.py [51 done in total, somefailed=False] D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 18 items module\cpyext\test\test_arraymodule.py ..........x....... =================== 17 passed, 1 xfailed in 174.83 seconds ==================== ++ 06:20:01 starting module/cpyext/test/test_bytesobject.py [53 started in total] __ module/cpyext/test/test_bytearrayobject.py [52 done in total, somefailed=False] D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 6 items module\cpyext\test\test_bytearrayobject.py ...... ========================== 6 passed in 64.40 seconds ========================== ++ 06:21:02 starting module/cpyext/test/test_capsule.py [54 started in total] __ module/cpyext/test/test_bytesobject.py [53 done in total, somefailed=False] D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 9 items module\cpyext\test\test_bytesobject.py ......... ========================== 9 passed in 92.34 seconds ========================== ++ 06:21:43 starting module/cpyext/test/test_cell.py [55 started in total] __ module/cpyext/test/test_capsule.py [54 done in total, somefailed=False] ____ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 3 items module\cpyext\test\test_capsule.py ... ========================== 3 passed in 42.82 seconds ========================== ++ 06:21:53 starting module/cpyext/test/test_classobject.py [56 started in total] __ module/cpyext/test/test_cell.py [55 done in total, somefailed=False] _______ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 1 items module\cpyext\test\test_cell.py . ========================== 1 passed in 14.01 seconds ========================== ++ 06:22:07 starting module/cpyext/test/test_codecs.py [57 started in total] __ module/cpyext/test/test_classobject.py [56 done in total, somefailed=False] D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 2 items module\cpyext\test\test_classobject.py .. ========================== 2 passed in 22.89 seconds ========================== ++ 06:22:22 starting module/cpyext/test/test_complexobject.py [58 started in total] __ module/cpyext/test/test_codecs.py [57 done in total, somefailed=False] _____ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 1 items module\cpyext\test\test_codecs.py . ========================== 1 passed in 15.12 seconds ========================== ++ 06:22:28 starting module/cpyext/test/test_contextvars.py [59 started in total] __ module/cpyext/test/test_contextvars.py [58 done in total, somefailed=False] D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 1 items module\cpyext\test\test_contextvars.py . ========================== 1 passed in 15.75 seconds ========================== ++ 06:22:49 starting module/cpyext/test/test_cpyext.py [60 started in total] __ module/cpyext/test/test_complexobject.py [59 done in total, somefailed=False] D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 5 items module\cpyext\test\test_complexobject.py ..... ========================== 5 passed in 50.71 seconds ========================== ++ 06:23:21 starting module/cpyext/test/test_datetime.py [61 started in total] __ module/cpyext/test/test_datetime.py [60 done in total, somefailed=False] ___ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 7 items module\cpyext\test\test_datetime.py ....... ========================== 7 passed in 75.93 seconds ========================== ++ 06:24:42 starting module/cpyext/test/test_dictobject.py [62 started in total] __ module/cpyext/test/test_cpyext.py [61 done in total, somefailed=False] _____ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 25 items module\cpyext\test\test_cpyext.py ......................... ========================= 25 passed in 225.52 seconds ========================= ++ 06:26:41 starting module/cpyext/test/test_eval.py [63 started in total] __ module/cpyext/test/test_dictobject.py [62 done in total, somefailed=False] _ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 11 items module\cpyext\test\test_dictobject.py ........... ========================= 11 passed in 115.00 seconds ========================= ++ 06:26:46 starting module/cpyext/test/test_exception.py [64 started in total] __ module/cpyext/test/test_exception.py [63 done in total, somefailed=False] __ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 2 items module\cpyext\test\test_exception.py .. ========================== 2 passed in 25.12 seconds ========================== ++ 06:27:19 starting module/cpyext/test/test_fileobject.py [65 started in total] __ module/cpyext/test/test_fileobject.py [64 done in total, somefailed=False] _ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 1 items module\cpyext\test\test_fileobject.py . ========================== 1 passed in 15.84 seconds ========================== ++ 06:27:39 starting module/cpyext/test/test_floatobject.py [66 started in total] __ module/cpyext/test/test_eval.py [65 done in total, somefailed=False] _______ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 9 items module\cpyext\test\test_eval.py .....x... ==================== 8 passed, 1 xfailed in 76.07 seconds ===================== ++ 06:28:02 starting module/cpyext/test/test_frameobject.py [67 started in total] __ module/cpyext/test/test_frameobject.py [66 done in total, somefailed=False] D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 4 items module\cpyext\test\test_frameobject.py .... ========================== 4 passed in 45.89 seconds ========================== ++ 06:28:54 starting module/cpyext/test/test_funcobject.py [68 started in total] __ module/cpyext/test/test_funcobject.py [67 done in total, somefailed=False] _ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 7 items module\cpyext\test\test_funcobject.py ....... ========================== 7 passed in 74.86 seconds ========================== ++ 06:30:14 starting module/cpyext/test/test_genobject.py [69 started in total] __ module/cpyext/test/test_floatobject.py [68 done in total, somefailed=False] D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 12 items module\cpyext\test\test_floatobject.py ............ ========================= 12 passed in 151.16 seconds ========================= ++ 06:30:20 starting module/cpyext/test/test_getargs.py [70 started in total] __ module/cpyext/test/test_genobject.py [69 done in total, somefailed=False] __ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 2 items module\cpyext\test\test_genobject.py .. ========================== 2 passed in 22.98 seconds ========================== ++ 06:30:43 starting module/cpyext/test/test_import.py [71 started in total] __ module/cpyext/test/test_import.py [70 done in total, somefailed=False] _____ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 2 items module\cpyext\test\test_import.py .. ========================== 2 passed in 25.32 seconds ========================== ++ 06:31:16 starting module/cpyext/test/test_iterator.py [72 started in total] __ module/cpyext/test/test_iterator.py [71 done in total, somefailed=False] ___ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 2 items module\cpyext\test\test_iterator.py .. ========================== 2 passed in 27.34 seconds ========================== ++ 06:31:49 starting module/cpyext/test/test_listobject.py [73 started in total] __ module/cpyext/test/test_listobject.py [72 done in total, somefailed=False] _ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 5 items module\cpyext\test\test_listobject.py ..... ========================== 5 passed in 57.19 seconds ========================== ++ 06:32:55 starting module/cpyext/test/test_longobject.py [74 started in total] __ module/cpyext/test/test_getargs.py [73 done in total, somefailed=False] ____ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 16 items module\cpyext\test\test_getargs.py ................ ========================= 16 passed in 150.81 seconds ========================= ++ 06:33:00 starting module/cpyext/test/test_mapping.py [75 started in total] __ module/cpyext/test/test_mapping.py [74 done in total, somefailed=False] ____ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 7.17 seconds ========================= ++ 06:33:12 starting module/cpyext/test/test_marshal.py [76 started in total] __ module/cpyext/test/test_marshal.py [75 done in total, somefailed=False] ____ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 2 items module\cpyext\test\test_marshal.py .. ========================== 2 passed in 27.77 seconds ========================== ++ 06:33:45 starting module/cpyext/test/test_memoryobject.py [77 started in total] __ module/cpyext/test/test_longobject.py [76 done in total, somefailed=False] _ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 15 items module\cpyext\test\test_longobject.py ............... ========================= 15 passed in 142.82 seconds ========================= ++ 06:35:28 starting module/cpyext/test/test_methodobject.py [78 started in total] __ module/cpyext/test/test_memoryobject.py [77 done in total, somefailed=False] D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 11 items module\cpyext\test\test_memoryobject.py .s......... =================== 10 passed, 1 skipped in 110.15 seconds ==================== ++ 06:35:42 starting module/cpyext/test/test_misc.py [79 started in total] __ module/cpyext/test/test_misc.py [78 done in total, somefailed=False] _______ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 1 items module\cpyext\test\test_misc.py . ========================== 1 passed in 16.78 seconds ========================== ++ 06:36:06 starting module/cpyext/test/test_module.py [80 started in total] __ module/cpyext/test/test_methodobject.py [79 done in total, somefailed=False] D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 14 items module\cpyext\test\test_methodobject.py .............. ========================= 14 passed in 137.19 seconds ========================= ++ 06:37:54 starting module/cpyext/test/test_namespaceobject.py [81 started in total] __ module/cpyext/test/test_namespaceobject.py [80 done in total, somefailed=False] D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 1 items module\cpyext\test\test_namespaceobject.py . ========================== 1 passed in 16.48 seconds ========================== ++ 06:38:14 starting module/cpyext/test/test_ndarrayobject.py [82 started in total] __ module/cpyext/test/test_ndarrayobject.py [81 done in total, somefailed=False] D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items / 1 skipped ========================= 1 skipped in 10.88 seconds ========================== ++ 06:38:29 starting module/cpyext/test/test_number.py [83 started in total] __ module/cpyext/test/test_number.py [82 done in total, somefailed=False] _____ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 3 items module\cpyext\test\test_number.py ... ========================== 3 passed in 37.14 seconds ========================== ++ 06:39:14 starting module/cpyext/test/test_object.py [84 started in total] __ module/cpyext/test/test_module.py [83 done in total, somefailed=False] _____ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 23 items module\cpyext\test\test_module.py ....................... ========================= 23 passed in 219.04 seconds ========================= ++ 06:39:52 starting module/cpyext/test/test_pyerrors.py [85 started in total] __ module/cpyext/test/test_object.py [84 done in total, somefailed=False] _____ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 19 items module\cpyext\test\test_object.py ................... ========================= 19 passed in 179.07 seconds ========================= ++ 06:42:23 starting module/cpyext/test/test_pyfile.py [86 started in total] __ module/cpyext/test/test_pyfile.py [85 done in total, somefailed=False] _____ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 7.20 seconds ========================= ++ 06:42:35 starting module/cpyext/test/test_pymem.py [87 started in total] __ module/cpyext/test/test_pymem.py [86 done in total, somefailed=False] ______ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 1 items module\cpyext\test\test_pymem.py . ========================== 1 passed in 17.73 seconds ========================== ++ 06:42:59 starting module/cpyext/test/test_pysignals.py [88 started in total] __ module/cpyext/test/test_pysignals.py [87 done in total, somefailed=False] __ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 1 items module\cpyext\test\test_pysignals.py . ========================== 1 passed in 17.23 seconds ========================== ++ 06:43:23 starting module/cpyext/test/test_pystate.py [89 started in total] __ module/cpyext/test/test_pyerrors.py [88 done in total, somefailed=True] ____ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 23 items module\cpyext\test\test_pyerrors.py .....F.......s......... ================================== FAILURES =================================== ______________ AppTestFetch.test_SetFromErrnoWithFilename_basic _______________ self = <CallInfo when='call' exception: Subprocess failed with exit code 1: Traceback (most recent call last): File "d:\sy....py", line 196, in test_SetFromErrnoWithFilename_basic assert exc_info.value.errno == 376526934 AssertionError > func = <function <lambda> at 0x0000018c7193b448>, when = 'call' def __init__(self, func, when): #: context of invocation: one of "setup", "call", #: "teardown", "memocollect" self.when = when self.start = time() try: > self.result = func() ..\_pytest\runner.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > return CallInfo(lambda: ihook(item=item, **kwds), when=when) ..\_pytest\runner.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'> kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_SetFromErrnoWithFilename_basic'...all__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_SetFromErrnoWithFilename_basic'>} def __call__(self, **kwargs): assert not self.is_historic() > return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) ..\_pytest\vendored_packages\pluggy.py:724: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0x0000018c6da5e838> hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_SetFromErrnoWithFilename_basic'...all__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_SetFromErrnoWithFilename_basic'>} def _hookexec(self, hook, methods, kwargs): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook, methods, kwargs) ..\_pytest\vendored_packages\pluggy.py:338: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_SetFromErrnoWithFilename_basic'...all__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_SetFromErrnoWithFilename_basic'>} self._inner_hookexec = lambda hook, methods, kwargs: \ > _MultiCall(methods, kwargs, hook.spec_opts).execute() ..\_pytest\vendored_packages\pluggy.py:333: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_SetFromErrnoWithFilename_basic'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: > return _wrapped_call(hook_impl.function(*args), self.execute) ..\_pytest\vendored_packages\pluggy.py:595: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ wrap_controller = <generator object pytest_runtest_call at 0x0000018c6f5db2e0> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i...name_basic'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def _wrapped_call(wrap_controller, func): """ Wrap calling to a function with a generator which needs to yield exactly once. The yield point will trigger calling the wrapped function and return its _CallOutcome to the yield point. The generator then needs to finish (raise StopIteration) in order for the wrapped call to complete. """ try: next(wrap_controller) # first yield except StopIteration: _raise_wrapfail(wrap_controller, "did not yield") call_outcome = _CallOutcome(func) try: wrap_controller.send(call_outcome) _raise_wrapfail(wrap_controller, "has second yield") except StopIteration: pass > return call_outcome.get_result() ..\_pytest\vendored_packages\pluggy.py:253: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x0000018c72f32a60> def get_result(self): if self.excinfo is None: return self.result else: ex = self.excinfo if _py3: raise ex[1].with_traceback(ex[2]) > _reraise(*ex) # noqa ..\_pytest\vendored_packages\pluggy.py:279: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x0000018c72f32a60> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i...name_basic'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def __init__(self, func): try: > self.result = func() ..\_pytest\vendored_packages\pluggy.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_SetFromErrnoWithFilename_basic'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: return _wrapped_call(hook_impl.function(*args), self.execute) > res = hook_impl.function(*args) ..\_pytest\vendored_packages\pluggy.py:596: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = <AppTestMethod 'test_SetFromErrnoWithFilename_basic'> def pytest_runtest_call(item): try: > item.runtest() ..\_pytest\runner.py:91: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <AppTestMethod 'test_SetFromErrnoWithFilename_basic'> def runtest(self): target = self.obj src = extract_docstring_if_empty_function(target.im_func) space = target.im_self.space if self.config.option.runappdirect: appexec_definitions = self.parent.obj.__dict__ spaceconfig = getattr(self.parent.obj, 'spaceconfig', None) usemodules = spaceconfig.get('usemodules') if spaceconfig else None return run_with_python(self.config.option.python, src, usemodules, > **appexec_definitions) tool\pytest\apptest.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ python_ = 'd:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\pypy\\goal\\pypy3.11-c.exe' target_ = <function test_SetFromErrnoWithFilename_basic at 0x0000018c73f38ea8> usemodules = ['cpyext', '_thread', '_struct', 'array', 'itertools', 'time', ...] definitions = {'compile_module': <bound method AppTestFetch.w_compile_module of <pypy.module.cpyext.test.test_pyerrors.AppTestFetch ...estFetch.w_import_extension of <pypy.module.cpyext.test.test_pyerrors.AppTestFetch object at 0x0000018c6ff9fb08>>, ...} defs = ['def w_compile_module(self, name,\n source_files=None, source_strings=None):\n from extbuild import get_sys...e=prologue,\n include_dirs=include_dirs, more_init=more_init,\n PY_SSIZE_T_CLEAN=PY_SSIZE_T_CLEAN)', ...] symbol = 'udir', value = u'd:\\systemtemp\\pytest\\usession-py3.11-958' code = <py._code.code.Code object at 0x0000018c6ff9fb40> def run_with_python(python_, target_, usemodules, **definitions): if python_ is None: py.test.skip("Cannot find the default python3 interpreter to run with -A") defs = [] for symbol, value in sorted(definitions.items()): if isinstance(value, tuple) and isinstance(value[0], py.code.Source): code, args = value defs.append(str(code)) arg_repr = [] for arg in args: if isinstance(arg, types.FunctionType): arg_repr.append(arg.__name__) elif isinstance(arg, types.MethodType): arg_repr.append(arg.__name__) else: arg_repr.append(py3k_repr(arg)) args = ', '.join(arg_repr) defs.append("self.%s = anonymous(%s)\n" % (symbol, args)) elif isinstance(value, types.MethodType): # "def w_method(self)" code = py.code.Code(value) defs.append(str(code.source())) defs.append("type(self).%s = %s\n" % (symbol, value.__name__)) elif isinstance(value, types.ModuleType): name = value.__name__ defs.append("import %s; self.%s = %s\n" % (name, symbol, name)) elif isinstance(value, (str, unicode, int, long, float, list, tuple, dict)) or value is None: defs.append("self.%s = %s\n" % (symbol, py3k_repr(value))) check_usemodules = '' if usemodules: usemodules = [_rename_module(name) for name in usemodules] check_usemodules = """\ missing = set(%r).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing""" % usemodules source = list(py.code.Source(target_)) while source[0].startswith(('@py.test.mark.', '@pytest.mark.')): source.pop(0) source = source[1:] pyfile = udir.join('src.py') if isinstance(target_, str): # Special case of a docstring; the function name is the first word. target_name = target_.split('(', 1)[0] else: target_name = target_.__name__ with pyfile.open('w') as f: f.write(helpers % (pypyroot, check_usemodules)) f.write('\n'.join(defs)) f.write('def %s():\n' % target_name) f.write('\n'.join(source)) f.write("\ntry:\n %s()\n" % target_name) f.write('finally:\n print("===aefwuiheawiu===")') helper_dir = os.path.join(pypydir, 'tool', 'cpyext') env = os.environ.copy() env['PYTHONPATH'] = helper_dir res, stdout, stderr = run_subprocess( python_, [str(pyfile)], env=env) print pyfile.read() print "from", str(pyfile) print >> sys.stdout, stdout print >> sys.stderr, stderr if res == 81: py.test.skip('%r was not compiled w/ required usemodules: %r' % (python_, usemodules)) elif res != 0: raise AssertionError( > "Subprocess failed with exit code %s:\n%s" % (res, stderr)) E AssertionError: Subprocess failed with exit code 1: E Traceback (most recent call last): E File "d:\systemtemp\pytest\usession-py3.11-958\src.py", line 224, in <module> E test_SetFromErrnoWithFilename_basic() E File "d:\systemtemp\pytest\usession-py3.11-958\src.py", line 196, in test_SetFromErrnoWithFilename_basic E assert exc_info.value.errno == 376526934 E AssertionError tool\pytest\apptest.py:239: AssertionError ---------------------------- Captured stdout call ----------------------------- # -*- encoding: utf-8 -*- if 1: import sys sys.path.append('d:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build') missing = set(['cpyext', '_thread', '_struct', 'array', 'itertools', 'time', 'binascii', 'mmap', '_signal', '_cffi_backend']).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing def skip(message): print(message) raise SystemExit(0) __builtins__.skip = skip __builtins__.py3k_skip = skip class ExceptionWrapper: pass def raises(exc, *args, **kwargs): if not args: return RaisesContext(exc) func = args[0] args = args[1:] import os try: if isinstance(func, str): if func.startswith((' ', os.linesep, '\n')): # it's probably an indented block, so we prefix if True: # to avoid SyntaxError func = "if True:\n" + func frame = sys._getframe(1) exec(func, frame.f_globals, frame.f_locals) else: func(*args, **kwargs) except exc as e: res = ExceptionWrapper() res.value = e res.traceback = e.__traceback__ return res else: raise AssertionError("DID NOT RAISE") class RaisesContext(object): def __init__(self, expected_exception): self.expected_exception = expected_exception self.excinfo = None def __enter__(self): return self def __exit__(self, *tp): __tracebackhide__ = True if tp[0] is None: raise AssertionError("DID NOT RAISE") self.value = tp[1] return issubclass(tp[0], self.expected_exception) __builtins__.raises = raises class Test: pass self = Test() def w_compile_module(self, name, source_files=None, source_strings=None): from extbuild import get_sys_info_app sys_info = get_sys_info_app(self.udir) return sys_info.compile_extension_module(name, source_files=source_files, source_strings=source_strings) type(self).compile_module = w_compile_module def w_debug_collect(self): import gc gc.collect() gc.collect() gc.collect() type(self).debug_collect = w_debug_collect self.here = 'd:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\pypy\\module\\cpyext\\test' def w_import_extension(self, modname, functions, prologue="", include_dirs=None, more_init="", PY_SSIZE_T_CLEAN=False): from extbuild import get_sys_info_app sys_info = get_sys_info_app(self.udir) return sys_info.import_extension( modname, functions, prologue=prologue, include_dirs=include_dirs, more_init=more_init, PY_SSIZE_T_CLEAN=PY_SSIZE_T_CLEAN) type(self).import_extension = w_import_extension def w_import_module(self, name, init=None, body='', filename=None, include_dirs=None, PY_SSIZE_T_CLEAN=False, use_imp=False): from extbuild import get_sys_info_app sys_info = get_sys_info_app(self.udir) return sys_info.import_module( name, init=init, body=body, filename=filename, include_dirs=include_dirs, PY_SSIZE_T_CLEAN=PY_SSIZE_T_CLEAN) type(self).import_module = w_import_module def w_load_module(self, mod, name): from extbuild import get_sys_info_app sys_info = get_sys_info_app(self.udir) return sys_info.load_module(mod, name) type(self).load_module = w_load_module self.runappdirect = True self.special_char = '\xe4' self.udir = 'd:\\systemtemp\\pytest\\usession-py3.11-958' def test_SetFromErrnoWithFilename_basic(): char = self.special_char if char is None: char = "a" # boring import errno, os, sys codestr = [ ("set_from_errno", "METH_NOARGS", ''' errno = EBADF; PyErr_SetFromErrnoWithFilename(PyExc_OSError, "/path/to/file"); return NULL; '''), ("set_from_errno_special", "METH_NOARGS", ''' errno = EBADF; PyErr_SetFromErrnoWithFilename(PyExc_OSError, "/path/to/%s"); return NULL; ''' % (char, )), ] if sys.platform == "win32": codestr += [ ("set_from_windowserr", "METH_NOARGS", """ /* this error code has no message, Python formats it as hexadecimal */ int code = 376526934; PyObject *ret = PyErr_SetFromWindowsErr(code); return NULL; """), ("set_from_windowserr_filename", "METH_O", """ int code = 376526934; char *filename = NULL; if (args != Py_None) filename = PyBytes_AsString(args); PyObject *ret = PyErr_SetFromWindowsErrWithFilename(code, filename); return NULL; """), ("set_from_windowserr_filename_object", "METH_O", """ int code = 376526934; PyObject *ret = PyErr_SetExcFromWindowsErrWithFilenameObject(PyExc_OSError, code, args); return NULL; """), ("set_from_windowserr_filename_objects", "METH_VARARGS", """ int code = 376526934; PyObject *arg1, *arg2; if (!PyArg_ParseTuple(args, "OO", &arg1, &arg2)) { return NULL; } PyObject *ret = PyErr_SetExcFromWindowsErrWithFilenameObjects(PyExc_OSError, code, arg1, arg2); return NULL; """), ] module = self.import_extension('foo', codestr, prologue="#include <errno.h>") exc_info = raises(OSError, module.set_from_errno) assert exc_info.value.filename == "/path/to/file" if self.runappdirect: # untranslated the errno can get reset by the calls to ll2ctypes assert exc_info.value.errno == errno.EBADF assert exc_info.value.strerror == os.strerror(errno.EBADF) exc_info = raises(OSError, module.set_from_errno_special) assert exc_info.value.filename == "/path/to/%s" % (char, ) if self.runappdirect: # untranslated the errno can get reset by the calls to ll2ctypes assert exc_info.value.errno == errno.EBADF assert exc_info.value.strerror == os.strerror(errno.EBADF) if sys.platform == "win32": exc_info = raises(OSError, module.set_from_windowserr) if self.runappdirect: # untranslated the errno can get reset by the calls to ll2ctypes assert exc_info.value.errno == 376526934 exc_info = raises(OSError, module.set_from_windowserr_filename, None) if self.runappdirect: assert exc_info.value.errno == 376526934 exc_info = raises(OSError, module.set_from_windowserr_filename, b"myfile.py") if self.runappdirect: assert exc_info.value.errno == 376526934 assert exc_info.value.filename == "myfile.py" exc_info = raises(OSError, module.set_from_windowserr_filename_object, "myfile.py") print(exc_info.value.filename) if self.runappdirect: assert exc_info.value.errno == 376526934 assert exc_info.value.filename == "myfile.py" exc_info = raises(OSError, module.set_from_windowserr_filename_objects, "myfile.py", "myfile2.py") print(exc_info.value, exc_info.value.filename) if self.runappdirect: assert exc_info.value.errno == 376526934 assert exc_info.value.filename == "myfile.py" assert exc_info.value.filename2== "myfile2.py" try: test_SetFromErrnoWithFilename_basic() finally: print("===aefwuiheawiu===") from d:\systemtemp\pytest\usession-py3.11-958\src.py source_0.c Creating library d:\systemtemp\pytest\usession-py3.11-958\foo-5\foo.lib and object d:\systemtemp\pytest\usession-py3.11-958\foo-5\foo.exp Generating code Finished generating code ===aefwuiheawiu=== ---------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "d:\systemtemp\pytest\usession-py3.11-958\src.py", line 224, in <module> test_SetFromErrnoWithFilename_basic() File "d:\systemtemp\pytest\usession-py3.11-958\src.py", line 196, in test_SetFromErrnoWithFilename_basic assert exc_info.value.errno == 376526934 AssertionError =========================== short test summary info =========================== FAIL module\cpyext\test\test_pyerrors.py::AppTestFetch::()::test_SetFromErrnoWithFilename_basic ============== 1 failed, 21 passed, 1 skipped in 209.77 seconds =============== ++ 06:43:30 starting module/cpyext/test/test_pystrhex.py [90 started in total] __ module/cpyext/test/test_pystrhex.py [89 done in total, somefailed=False] ___ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 1 items module\cpyext\test\test_pystrhex.py . ========================== 1 passed in 15.29 seconds ========================== ++ 06:43:51 starting module/cpyext/test/test_pystrtod.py [91 started in total] __ module/cpyext/test/test_pystrtod.py [90 done in total, somefailed=False] ___ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 1 items module\cpyext\test\test_pystrtod.py . ========================== 1 passed in 16.02 seconds ========================== ++ 06:44:12 starting module/cpyext/test/test_sequence.py [92 started in total] __ module/cpyext/test/test_sequence.py [91 done in total, somefailed=False] ___ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 4 items module\cpyext\test\test_sequence.py .... ========================== 4 passed in 41.88 seconds ========================== ++ 06:45:04 starting module/cpyext/test/test_setobject.py [93 started in total] __ module/cpyext/test/test_pystate.py [92 done in total, somefailed=False] ____ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 12 items module\cpyext\test\test_pystate.py ....x....... =================== 11 passed, 1 xfailed in 100.67 seconds ==================== ++ 06:45:13 starting module/cpyext/test/test_sliceobject.py [94 started in total] __ module/cpyext/test/test_setobject.py [93 done in total, somefailed=False] __ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 1 items module\cpyext\test\test_setobject.py . ========================== 1 passed in 13.47 seconds ========================== ++ 06:45:25 starting module/cpyext/test/test_structseq.py [95 started in total] __ module/cpyext/test/test_structseq.py [94 done in total, somefailed=False] __ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 1 items module\cpyext\test\test_structseq.py . ========================== 1 passed in 16.85 seconds ========================== ++ 06:45:49 starting module/cpyext/test/test_sysmodule.py [96 started in total] __ module/cpyext/test/test_sliceobject.py [95 done in total, somefailed=False] D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 6 items module\cpyext\test\test_sliceobject.py ...... ========================== 6 passed in 58.11 seconds ========================== ++ 06:46:20 starting module/cpyext/test/test_thread.py [97 started in total] __ module/cpyext/test/test_sysmodule.py [96 done in total, somefailed=False] __ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 3 items module\cpyext\test\test_sysmodule.py ... ========================== 3 passed in 34.73 seconds ========================== ++ 06:46:27 starting module/cpyext/test/test_traceback.py [98 started in total] __ module/cpyext/test/test_traceback.py [97 done in total, somefailed=False] __ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 7.29 seconds ========================= ++ 06:46:40 starting module/cpyext/test/test_translate.py [99 started in total] __ module/cpyext/test/test_translate.py [98 done in total, somefailed=False] __ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 2.75 seconds ========================= ++ 06:46:47 starting module/cpyext/test/test_tupleobject.py [100 started in total] __ module/cpyext/test/test_thread.py [99 done in total, somefailed=False] _____ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 6 items module\cpyext\test\test_thread.py x...x. ==================== 4 passed, 2 xfailed in 39.36 seconds ===================== ++ 06:47:04 starting module/cpyext/test/test_typeobject.py [101 started in total] __ module/cpyext/test/test_tupleobject.py [100 done in total, somefailed=False] D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 5 items module\cpyext\test\test_tupleobject.py ..... ========================== 5 passed in 52.04 seconds ========================== ++ 06:47:46 starting module/cpyext/test/test_unicodeobject.py [102 started in total] __ module/cpyext/test/test_unicodeobject.py [101 done in total, somefailed=False] D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 32 items module\cpyext\test\test_unicodeobject.py ................................ ========================= 32 passed in 320.85 seconds ========================= ++ 06:53:12 starting module/cpyext/test/test_userslots.py [103 started in total] __ module/cpyext/test/test_userslots.py [102 done in total, somefailed=False] _ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 4 items module\cpyext\test\test_userslots.py .... ========================== 4 passed in 47.41 seconds ========================== ++ 06:54:12 starting module/cpyext/test/test_version.py [104 started in total] __ module/cpyext/test/test_version.py [103 done in total, somefailed=False] ___ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 2 items module\cpyext\test\test_version.py .. ========================== 2 passed in 24.58 seconds ========================== ++ 06:54:45 starting module/cpyext/test/test_weakref.py [105 started in total] __ module/cpyext/test/test_weakref.py [104 done in total, somefailed=False] ___ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 2 items module\cpyext\test\test_weakref.py .. ========================== 2 passed in 24.15 seconds ========================== ++ 06:55:18 starting module/crypt/test [106 started in total] __ module/crypt/test [105 done in total, somefailed=False] ____________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items / 1 skipped ========================== 1 skipped in 0.02 seconds ========================== ++ 06:55:22 starting module/errno/test [107 started in total] __ module/errno/test [106 done in total, somefailed=False] ____________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 3 items module\errno\test\test_errno.py ... ========================== 3 passed in 0.79 seconds =========================== ++ 06:55:28 starting module/exceptions/test [108 started in total] __ module/exceptions/test [107 done in total, somefailed=False] _______________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 48 items module\exceptions\test\test_exc.py ................................................ ========================= 48 passed in 14.25 seconds ========================== ++ 06:55:49 starting module/faulthandler/test [109 started in total] __ module/faulthandler/test [108 done in total, somefailed=False] _____________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items / 1 skipped ========================== 1 skipped in 0.10 seconds ========================== ++ 06:55:55 starting module/fcntl/test [110 started in total] __ module/fcntl/test [109 done in total, somefailed=False] ____________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items / 1 skipped ========================== 1 skipped in 0.06 seconds ========================== ++ 06:55:59 starting module/gc/test [111 started in total] __ module/gc/test [110 done in total, somefailed=False] _______________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 24 items module\gc\test\test_gc.py sssssx.. module\gc\test\test_hook.py ssssssss module\gc\test\test_referents.py ...s.... =============== 9 passed, 14 skipped, 1 xfailed in 3.85 seconds =============== ++ 06:56:08 starting module/imp/test [112 started in total] __ module/imp/test [111 done in total, somefailed=False] ______________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 113 items module\imp\test\test_app.py ....................... module\imp\test\test_import.py ...............................................................s...........s..........ssss =================== 107 passed, 6 skipped in 38.80 seconds ==================== ++ 06:56:53 starting module/itertools/test [113 started in total] __ module/itertools/test [112 done in total, somefailed=False] ________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 87 items module\itertools\test\test_itertools.py ....................................................................................... ========================= 87 passed in 25.09 seconds ========================== ++ 06:57:26 starting module/marshal/test [114 started in total] __ module/marshal/test [113 done in total, somefailed=False] __________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 0.55 seconds ========================= ++ 06:57:31 starting module/math/test [115 started in total] __ module/math/test [114 done in total, somefailed=False] _____________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 31 items module\math\test\test_math.py ............................... ========================== 31 passed in 8.61 seconds ========================== ++ 06:57:46 starting module/micronumpy/test [116 started in total] __ module/micronumpy/test [115 done in total, somefailed=False] _______________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 0.06 seconds ========================= ++ 06:57:51 starting module/mmap/test [117 started in total] __ module/mmap/test [116 done in total, somefailed=False] _____________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 46 items module\mmap\test\test_mmap.py .............................................. ========================= 46 passed in 12.21 seconds ========================== ++ 06:58:08 starting module/operator/test [118 started in total] __ module/operator/test [117 done in total, somefailed=False] _________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 24 items module\operator\test\test_operator.py ........................ ========================== 24 passed in 7.28 seconds ========================== ++ 06:58:19 starting module/posix/test [119 started in total] __ module/posix/test [118 done in total, somefailed=True] _____________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 98 items / 1 skipped module\posix\test\test_posix2.py .....................s........s.....s.............F....s.s...........F.......s module\posix\test\test_scandir.py ....s..ssss.s....... ================================== FAILURES =================================== _________________________ AppTestPosix.test_startfile _________________________ self = <CallInfo when='call' exception: Subprocess failed with exit code 1: Traceback (most recent call last): File "d:\sy...tartfile(t1("\\"), t2("close")) ^^^^^^^^^^^ TypeError: string argument without an encoding > func = <function <lambda> at 0x000001c19aea7d30>, when = 'call' def __init__(self, func, when): #: context of invocation: one of "setup", "call", #: "teardown", "memocollect" self.when = when self.start = time() try: > self.result = func() ..\_pytest\runner.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > return CallInfo(lambda: ihook(item=item, **kwds), when=when) ..\_pytest\runner.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'> kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_startfile'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_startfile'>} def __call__(self, **kwargs): assert not self.is_historic() > return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) ..\_pytest\vendored_packages\pluggy.py:724: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0x000001c199b3e870> hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_startfile'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_startfile'>} def _hookexec(self, hook, methods, kwargs): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook, methods, kwargs) ..\_pytest\vendored_packages\pluggy.py:338: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_startfile'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_startfile'>} self._inner_hookexec = lambda hook, methods, kwargs: \ > _MultiCall(methods, kwargs, hook.spec_opts).execute() ..\_pytest\vendored_packages\pluggy.py:333: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_startfile'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: > return _wrapped_call(hook_impl.function(*args), self.execute) ..\_pytest\vendored_packages\pluggy.py:595: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ wrap_controller = <generator object pytest_runtest_call at 0x000001c19a465498> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i..._startfile'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def _wrapped_call(wrap_controller, func): """ Wrap calling to a function with a generator which needs to yield exactly once. The yield point will trigger calling the wrapped function and return its _CallOutcome to the yield point. The generator then needs to finish (raise StopIteration) in order for the wrapped call to complete. """ try: next(wrap_controller) # first yield except StopIteration: _raise_wrapfail(wrap_controller, "did not yield") call_outcome = _CallOutcome(func) try: wrap_controller.send(call_outcome) _raise_wrapfail(wrap_controller, "has second yield") except StopIteration: pass > return call_outcome.get_result() ..\_pytest\vendored_packages\pluggy.py:253: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000001c19b092f60> def get_result(self): if self.excinfo is None: return self.result else: ex = self.excinfo if _py3: raise ex[1].with_traceback(ex[2]) > _reraise(*ex) # noqa ..\_pytest\vendored_packages\pluggy.py:279: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000001c19b092f60> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i..._startfile'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def __init__(self, func): try: > self.result = func() ..\_pytest\vendored_packages\pluggy.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_startfile'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: return _wrapped_call(hook_impl.function(*args), self.execute) > res = hook_impl.function(*args) ..\_pytest\vendored_packages\pluggy.py:596: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = <AppTestMethod 'test_startfile'> def pytest_runtest_call(item): try: > item.runtest() ..\_pytest\runner.py:91: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <AppTestMethod 'test_startfile'> def runtest(self): target = self.obj src = extract_docstring_if_empty_function(target.im_func) space = target.im_self.space if self.config.option.runappdirect: appexec_definitions = self.parent.obj.__dict__ spaceconfig = getattr(self.parent.obj, 'spaceconfig', None) usemodules = spaceconfig.get('usemodules') if spaceconfig else None return run_with_python(self.config.option.python, src, usemodules, > **appexec_definitions) tool\pytest\apptest.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ python_ = 'd:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\pypy\\goal\\pypy3.11-c.exe' target_ = <function test_startfile at 0x000001c19e36df10> usemodules = ['binascii', 'nt', '_signal', '_struct', 'time', '_socket'] definitions = {'Path': (<py._code.source.Source object at 0x000001c19e6003d8>, []), 'SIGABRT': 22, 'bytes_dir': 'd:\\systemtemp\\pytest\\usession-py3.11-992\\fixc5x9fier.txt', 'dir_unicode': u'd:\\systemtemp\\pytest\\usession-py3.11-992\\dir_extra', ...} defs = ['def anonymous():\n class Path:\n def __init__(self, _path):\n self._pat...C:\\\\Program Files\\\\Git\\\\cmd;C:\\\\ProgramData\\\\chocolatey\\\\bin;C:\\\\WINDOWS\\\\System32\\\\OpenSSH'\n", ...] symbol = 'udir', value = u'd:\\systemtemp\\pytest\\usession-py3.11-992' code = <py._code.source.Source object at 0x000001c19e6003a0>, args = '' arg_repr = [] def run_with_python(python_, target_, usemodules, **definitions): if python_ is None: py.test.skip("Cannot find the default python3 interpreter to run with -A") defs = [] for symbol, value in sorted(definitions.items()): if isinstance(value, tuple) and isinstance(value[0], py.code.Source): code, args = value defs.append(str(code)) arg_repr = [] for arg in args: if isinstance(arg, types.FunctionType): arg_repr.append(arg.__name__) elif isinstance(arg, types.MethodType): arg_repr.append(arg.__name__) else: arg_repr.append(py3k_repr(arg)) args = ', '.join(arg_repr) defs.append("self.%s = anonymous(%s)\n" % (symbol, args)) elif isinstance(value, types.MethodType): # "def w_method(self)" code = py.code.Code(value) defs.append(str(code.source())) defs.append("type(self).%s = %s\n" % (symbol, value.__name__)) elif isinstance(value, types.ModuleType): name = value.__name__ defs.append("import %s; self.%s = %s\n" % (name, symbol, name)) elif isinstance(value, (str, unicode, int, long, float, list, tuple, dict)) or value is None: defs.append("self.%s = %s\n" % (symbol, py3k_repr(value))) check_usemodules = '' if usemodules: usemodules = [_rename_module(name) for name in usemodules] check_usemodules = """\ missing = set(%r).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing""" % usemodules source = list(py.code.Source(target_)) while source[0].startswith(('@py.test.mark.', '@pytest.mark.')): source.pop(0) source = source[1:] pyfile = udir.join('src.py') if isinstance(target_, str): # Special case of a docstring; the function name is the first word. target_name = target_.split('(', 1)[0] else: target_name = target_.__name__ with pyfile.open('w') as f: f.write(helpers % (pypyroot, check_usemodules)) f.write('\n'.join(defs)) f.write('def %s():\n' % target_name) f.write('\n'.join(source)) f.write("\ntry:\n %s()\n" % target_name) f.write('finally:\n print("===aefwuiheawiu===")') helper_dir = os.path.join(pypydir, 'tool', 'cpyext') env = os.environ.copy() env['PYTHONPATH'] = helper_dir res, stdout, stderr = run_subprocess( python_, [str(pyfile)], env=env) print pyfile.read() print "from", str(pyfile) print >> sys.stdout, stdout print >> sys.stderr, stderr if res == 81: py.test.skip('%r was not compiled w/ required usemodules: %r' % (python_, usemodules)) elif res != 0: raise AssertionError( > "Subprocess failed with exit code %s:\n%s" % (res, stderr)) E AssertionError: Subprocess failed with exit code 1: E Traceback (most recent call last): E File "d:\systemtemp\pytest\usession-py3.11-992\src.py", line 136, in <module> E test_startfile() E File "d:\systemtemp\pytest\usession-py3.11-992\src.py", line 120, in test_startfile E startfile(t1("\\"), t2("close")) E ^^^^^^^^^^^ E TypeError: string argument without an encoding tool\pytest\apptest.py:239: AssertionError ---------------------------- Captured stdout call ----------------------------- # -*- encoding: utf-8 -*- if 1: import sys sys.path.append('d:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build') missing = set(['binascii', 'nt', '_signal', '_struct', 'time', '_socket']).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing def skip(message): print(message) raise SystemExit(0) __builtins__.skip = skip __builtins__.py3k_skip = skip class ExceptionWrapper: pass def raises(exc, *args, **kwargs): if not args: return RaisesContext(exc) func = args[0] args = args[1:] import os try: if isinstance(func, str): if func.startswith((' ', os.linesep, '\n')): # it's probably an indented block, so we prefix if True: # to avoid SyntaxError func = "if True:\n" + func frame = sys._getframe(1) exec(func, frame.f_globals, frame.f_locals) else: func(*args, **kwargs) except exc as e: res = ExceptionWrapper() res.value = e res.traceback = e.__traceback__ return res else: raise AssertionError("DID NOT RAISE") class RaisesContext(object): def __init__(self, expected_exception): self.expected_exception = expected_exception self.excinfo = None def __enter__(self): return self def __exit__(self, *tp): __tracebackhide__ = True if tp[0] is None: raise AssertionError("DID NOT RAISE") self.value = tp[1] return issubclass(tp[0], self.expected_exception) __builtins__.raises = raises class Test: pass self = Test() def anonymous(): class Path: def __init__(self, _path): self._path =_path def __fspath__(self): return self._path return Path self.Path = anonymous() self.SIGABRT = 22 self.bytes_dir = b'd:\\systemtemp\\pytest\\usession-py3.11-992\\fixc5x9fier.txt' self.dir_unicode = 'd:\\systemtemp\\pytest\\usession-py3.11-992\\dir_extra' self.env_path = 'd:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\externals\\bin;d:\\CPython27\\lib\\site-packages\\pywin32_system32;d:\\pypy_stuff\\pypy\\externals\\bin;D:\\CPython27;D:\\pypy_stuff\\pypy2.7-v7.3.18\\Scripts;D:\\pypy_stuff\\pypy2.7-v7.3.18;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\TortoiseHg\\;C:\\Program Files\\Git\\cmd;C:\\ProgramData\\chocolatey\\bin;C:\\WINDOWS\\System32\\OpenSSH' self.esurrogate_dir = b'd:\\systemtemp\\pytest\\usession-py3.11-992\\foo' self.path = 'd:\\systemtemp\\pytest\\usession-py3.11-992\\posixtestfile.txt' self.path2 = 'd:\\systemtemp\\pytest\\usession-py3.11-992\\test_posix2-' self.path3 = 'd:\\systemtemp\\pytest\\usession-py3.11-992\\unlinktestfile.txt' self.pdir = 'd:\\systemtemp\\pytest\\usession-py3.11-992\\posixtestdir' self.platform = 'win32' def anonymous(): import nt as m ; return m self.posix = anonymous() self.python = 'D:\\pypy_stuff\\pypy2.7-v7.3.18\\python.exe' self.runappdirect = True self.sep = '\\' self.udir = 'd:\\systemtemp\\pytest\\usession-py3.11-992' def test_startfile(): if not self.runappdirect: skip("should not try to import cffi at app-level") startfile = self.posix.startfile for t1 in [str, bytes]: for t2 in [str, bytes]: with raises(WindowsError) as e: startfile(t1("\\"), t2("close")) assert e.value.args[0] == 1155 assert e.value.args[1] == ( "No application is associated with the " "specified file for this operation") if len(e.value.args) > 2: assert e.value.args[2] == t1("\\") # with raises(WindowsError) as e: startfile("\\foo\\bar\\baz") assert e.value.args[0] == 2 assert e.value.args[1] == ( "The system cannot find the file specified") if len(e.value.args) > 2: assert e.value.args[2] == "\\foo\\bar\\baz" try: test_startfile() finally: print("===aefwuiheawiu===") from d:\systemtemp\pytest\usession-py3.11-992\src.py ===aefwuiheawiu=== ---------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "d:\systemtemp\pytest\usession-py3.11-992\src.py", line 136, in <module> test_startfile() File "d:\systemtemp\pytest\usession-py3.11-992\src.py", line 120, in test_startfile startfile(t1("\\"), t2("close")) ^^^^^^^^^^^ TypeError: string argument without an encoding ________________________ AppTestNt.test_dll_directory _________________________ self = <CallInfo when='call' exception: Subprocess failed with exit code 1: Traceback (most recent call last): File "d:\sy... ret = nt._add_dll_directory(b'c:\\') ^^^^^^^^^^^^^^^^^^ TypeError: expected str, got bytes object > func = <function <lambda> at 0x000001c19da019e8>, when = 'call' def __init__(self, func, when): #: context of invocation: one of "setup", "call", #: "teardown", "memocollect" self.when = when self.start = time() try: > self.result = func() ..\_pytest\runner.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > return CallInfo(lambda: ihook(item=item, **kwds), when=when) ..\_pytest\runner.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'> kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_dll_directory'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_dll_directory'>} def __call__(self, **kwargs): assert not self.is_historic() > return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) ..\_pytest\vendored_packages\pluggy.py:724: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0x000001c199b3e870> hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_dll_directory'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_dll_directory'>} def _hookexec(self, hook, methods, kwargs): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook, methods, kwargs) ..\_pytest\vendored_packages\pluggy.py:338: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_dll_directory'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_dll_directory'>} self._inner_hookexec = lambda hook, methods, kwargs: \ > _MultiCall(methods, kwargs, hook.spec_opts).execute() ..\_pytest\vendored_packages\pluggy.py:333: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_dll_directory'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: > return _wrapped_call(hook_impl.function(*args), self.execute) ..\_pytest\vendored_packages\pluggy.py:595: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ wrap_controller = <generator object pytest_runtest_call at 0x000001c19e12a1b0> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i..._directory'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def _wrapped_call(wrap_controller, func): """ Wrap calling to a function with a generator which needs to yield exactly once. The yield point will trigger calling the wrapped function and return its _CallOutcome to the yield point. The generator then needs to finish (raise StopIteration) in order for the wrapped call to complete. """ try: next(wrap_controller) # first yield except StopIteration: _raise_wrapfail(wrap_controller, "did not yield") call_outcome = _CallOutcome(func) try: wrap_controller.send(call_outcome) _raise_wrapfail(wrap_controller, "has second yield") except StopIteration: pass > return call_outcome.get_result() ..\_pytest\vendored_packages\pluggy.py:253: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000001c19d824660> def get_result(self): if self.excinfo is None: return self.result else: ex = self.excinfo if _py3: raise ex[1].with_traceback(ex[2]) > _reraise(*ex) # noqa ..\_pytest\vendored_packages\pluggy.py:279: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000001c19d824660> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i..._directory'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def __init__(self, func): try: > self.result = func() ..\_pytest\vendored_packages\pluggy.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_dll_directory'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: return _wrapped_call(hook_impl.function(*args), self.execute) > res = hook_impl.function(*args) ..\_pytest\vendored_packages\pluggy.py:596: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = <AppTestMethod 'test_dll_directory'> def pytest_runtest_call(item): try: > item.runtest() ..\_pytest\runner.py:91: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <AppTestMethod 'test_dll_directory'> def runtest(self): target = self.obj src = extract_docstring_if_empty_function(target.im_func) space = target.im_self.space if self.config.option.runappdirect: appexec_definitions = self.parent.obj.__dict__ spaceconfig = getattr(self.parent.obj, 'spaceconfig', None) usemodules = spaceconfig.get('usemodules') if spaceconfig else None return run_with_python(self.config.option.python, src, usemodules, > **appexec_definitions) tool\pytest\apptest.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ python_ = 'd:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\pypy\\goal\\pypy3.11-c.exe' target_ = <function test_dll_directory at 0x000001c19e36c638> usemodules = ['binascii', 'nt', '_signal', '_struct', 'time', '_socket'] definitions = {'Path': (<py._code.source.Source object at 0x000001c19e14efa8>, []), 'path': u'd:\\systemtemp\\pytest\\usession-py3.11-992\\posixtestfile.txt', 'posix': (<py._code.source.Source object at 0x000001c19e14eec8>, [])} defs = ['def anonymous():\n class Path:\n def __init__(self, _path):\n self._pat...ession-py3.11-992\\\\posixtestfile.txt'\n", 'def anonymous(): import nt as m ; return m', 'self.posix = anonymous()\n'] symbol = 'posix' value = (<py._code.source.Source object at 0x000001c19e14eec8>, []) code = <py._code.source.Source object at 0x000001c19e14eec8>, args = '' arg_repr = [] def run_with_python(python_, target_, usemodules, **definitions): if python_ is None: py.test.skip("Cannot find the default python3 interpreter to run with -A") defs = [] for symbol, value in sorted(definitions.items()): if isinstance(value, tuple) and isinstance(value[0], py.code.Source): code, args = value defs.append(str(code)) arg_repr = [] for arg in args: if isinstance(arg, types.FunctionType): arg_repr.append(arg.__name__) elif isinstance(arg, types.MethodType): arg_repr.append(arg.__name__) else: arg_repr.append(py3k_repr(arg)) args = ', '.join(arg_repr) defs.append("self.%s = anonymous(%s)\n" % (symbol, args)) elif isinstance(value, types.MethodType): # "def w_method(self)" code = py.code.Code(value) defs.append(str(code.source())) defs.append("type(self).%s = %s\n" % (symbol, value.__name__)) elif isinstance(value, types.ModuleType): name = value.__name__ defs.append("import %s; self.%s = %s\n" % (name, symbol, name)) elif isinstance(value, (str, unicode, int, long, float, list, tuple, dict)) or value is None: defs.append("self.%s = %s\n" % (symbol, py3k_repr(value))) check_usemodules = '' if usemodules: usemodules = [_rename_module(name) for name in usemodules] check_usemodules = """\ missing = set(%r).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing""" % usemodules source = list(py.code.Source(target_)) while source[0].startswith(('@py.test.mark.', '@pytest.mark.')): source.pop(0) source = source[1:] pyfile = udir.join('src.py') if isinstance(target_, str): # Special case of a docstring; the function name is the first word. target_name = target_.split('(', 1)[0] else: target_name = target_.__name__ with pyfile.open('w') as f: f.write(helpers % (pypyroot, check_usemodules)) f.write('\n'.join(defs)) f.write('def %s():\n' % target_name) f.write('\n'.join(source)) f.write("\ntry:\n %s()\n" % target_name) f.write('finally:\n print("===aefwuiheawiu===")') helper_dir = os.path.join(pypydir, 'tool', 'cpyext') env = os.environ.copy() env['PYTHONPATH'] = helper_dir res, stdout, stderr = run_subprocess( python_, [str(pyfile)], env=env) print pyfile.read() print "from", str(pyfile) print >> sys.stdout, stdout print >> sys.stderr, stderr if res == 81: py.test.skip('%r was not compiled w/ required usemodules: %r' % (python_, usemodules)) elif res != 0: raise AssertionError( > "Subprocess failed with exit code %s:\n%s" % (res, stderr)) E AssertionError: Subprocess failed with exit code 1: E Traceback (most recent call last): E File "d:\systemtemp\pytest\usession-py3.11-992\src.py", line 94, in <module> E test_dll_directory() E File "d:\systemtemp\pytest\usession-py3.11-992\src.py", line 89, in test_dll_directory E ret = nt._add_dll_directory(b'c:\\') E ^^^^^^^^^^^^^^^^^^ E TypeError: expected str, got bytes object tool\pytest\apptest.py:239: AssertionError ---------------------------- Captured stdout call ----------------------------- # -*- encoding: utf-8 -*- if 1: import sys sys.path.append('d:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build') missing = set(['binascii', 'nt', '_signal', '_struct', 'time', '_socket']).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing def skip(message): print(message) raise SystemExit(0) __builtins__.skip = skip __builtins__.py3k_skip = skip class ExceptionWrapper: pass def raises(exc, *args, **kwargs): if not args: return RaisesContext(exc) func = args[0] args = args[1:] import os try: if isinstance(func, str): if func.startswith((' ', os.linesep, '\n')): # it's probably an indented block, so we prefix if True: # to avoid SyntaxError func = "if True:\n" + func frame = sys._getframe(1) exec(func, frame.f_globals, frame.f_locals) else: func(*args, **kwargs) except exc as e: res = ExceptionWrapper() res.value = e res.traceback = e.__traceback__ return res else: raise AssertionError("DID NOT RAISE") class RaisesContext(object): def __init__(self, expected_exception): self.expected_exception = expected_exception self.excinfo = None def __enter__(self): return self def __exit__(self, *tp): __tracebackhide__ = True if tp[0] is None: raise AssertionError("DID NOT RAISE") self.value = tp[1] return issubclass(tp[0], self.expected_exception) __builtins__.raises = raises class Test: pass self = Test() def anonymous(): class Path: def __init__(self, _path): self._path =_path def __fspath__(self): return self._path return Path self.Path = anonymous() self.path = 'd:\\systemtemp\\pytest\\usession-py3.11-992\\posixtestfile.txt' def anonymous(): import nt as m ; return m self.posix = anonymous() def test_dll_directory(): nt = self.posix ret = nt._add_dll_directory(b'c:\\') assert nt._remove_dll_directory(ret) ret = nt._add_dll_directory(u'c:\\') assert nt._remove_dll_directory(ret) try: test_dll_directory() finally: print("===aefwuiheawiu===") from d:\systemtemp\pytest\usession-py3.11-992\src.py ===aefwuiheawiu=== ---------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "d:\systemtemp\pytest\usession-py3.11-992\src.py", line 94, in <module> test_dll_directory() File "d:\systemtemp\pytest\usession-py3.11-992\src.py", line 89, in test_dll_directory ret = nt._add_dll_directory(b'c:\\') ^^^^^^^^^^^^^^^^^^ TypeError: expected str, got bytes object =========================== short test summary info =========================== FAIL module\posix\test\test_posix2.py::AppTestPosix::()::test_startfile FAIL module\posix\test\test_posix2.py::AppTestNt::()::test_dll_directory ============== 2 failed, 84 passed, 13 skipped in 31.16 seconds =============== ++ 06:58:57 starting module/pwd/test [120 started in total] __ module/pwd/test [119 done in total, somefailed=False] ______________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items / 2 skipped ========================== 2 skipped in 0.13 seconds ========================== ++ 06:59:02 starting module/pyexpat/test [121 started in total] __ module/pyexpat/test [120 done in total, somefailed=False] __________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 17 items module\pyexpat\test\test_parser.py ................. ========================== 17 passed in 4.49 seconds ========================== ++ 06:59:12 starting module/pypyjit/test [122 started in total] __ module/pypyjit/test [121 done in total, somefailed=False] __________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 15 items module\pypyjit\test\test_jit_hook.py sssssssss module\pypyjit\test\test_jit_not_in_trace.py .. module\pypyjit\test\test_jit_setup.py .... ===================== 6 passed, 9 skipped in 1.77 seconds ===================== ++ 06:59:20 starting module/select/test [123 started in total] __ module/select/test [122 done in total, somefailed=False] ___________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 45 items module\select\test\test_epoll.py ssssssssss module\select\test\test_kqueue.py ssssss module\select\test\test_select.py ssssssssssssssss............ module\select\test\test_select_signal.py s ==================== 12 passed, 33 skipped in 4.07 seconds ==================== ++ 06:59:30 starting module/signal/test [124 started in total] __ module/signal/test [123 done in total, somefailed=True] ____________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 25 items module\signal\test\test_signal.py ..........F.....sssssssss ================================== FAILURES =================================== __________________ AppTestSignal.test_set_wakeup_fd_invalid ___________________ self = <CallInfo when='call' exception: Subprocess failed with exit code 1: Traceback (most recent call last): File "d:\sy...ion-py3.11-997\src.py", line 53, in raises raise AssertionError("DID NOT RAISE") AssertionError: DID NOT RAISE > func = <function <lambda> at 0x000001e3f018f790>, when = 'call' def __init__(self, func, when): #: context of invocation: one of "setup", "call", #: "teardown", "memocollect" self.when = when self.start = time() try: > self.result = func() ..\_pytest\runner.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > return CallInfo(lambda: ihook(item=item, **kwds), when=when) ..\_pytest\runner.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'> kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_set_wakeup_fd_invalid'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_set_wakeup_fd_invalid'>} def __call__(self, **kwargs): assert not self.is_historic() > return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) ..\_pytest\vendored_packages\pluggy.py:724: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0x000001e3ec28e8a8> hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_set_wakeup_fd_invalid'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_set_wakeup_fd_invalid'>} def _hookexec(self, hook, methods, kwargs): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook, methods, kwargs) ..\_pytest\vendored_packages\pluggy.py:338: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_set_wakeup_fd_invalid'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_set_wakeup_fd_invalid'>} self._inner_hookexec = lambda hook, methods, kwargs: \ > _MultiCall(methods, kwargs, hook.spec_opts).execute() ..\_pytest\vendored_packages\pluggy.py:333: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_set_wakeup_fd_invalid'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: > return _wrapped_call(hook_impl.function(*args), self.execute) ..\_pytest\vendored_packages\pluggy.py:595: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ wrap_controller = <generator object pytest_runtest_call at 0x000001e3effce110> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i...fd_invalid'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def _wrapped_call(wrap_controller, func): """ Wrap calling to a function with a generator which needs to yield exactly once. The yield point will trigger calling the wrapped function and return its _CallOutcome to the yield point. The generator then needs to finish (raise StopIteration) in order for the wrapped call to complete. """ try: next(wrap_controller) # first yield except StopIteration: _raise_wrapfail(wrap_controller, "did not yield") call_outcome = _CallOutcome(func) try: wrap_controller.send(call_outcome) _raise_wrapfail(wrap_controller, "has second yield") except StopIteration: pass > return call_outcome.get_result() ..\_pytest\vendored_packages\pluggy.py:253: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000001e3f01c0860> def get_result(self): if self.excinfo is None: return self.result else: ex = self.excinfo if _py3: raise ex[1].with_traceback(ex[2]) > _reraise(*ex) # noqa ..\_pytest\vendored_packages\pluggy.py:279: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000001e3f01c0860> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i...fd_invalid'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def __init__(self, func): try: > self.result = func() ..\_pytest\vendored_packages\pluggy.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_set_wakeup_fd_invalid'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: return _wrapped_call(hook_impl.function(*args), self.execute) > res = hook_impl.function(*args) ..\_pytest\vendored_packages\pluggy.py:596: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = <AppTestMethod 'test_set_wakeup_fd_invalid'> def pytest_runtest_call(item): try: > item.runtest() ..\_pytest\runner.py:91: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <AppTestMethod 'test_set_wakeup_fd_invalid'> def runtest(self): target = self.obj src = extract_docstring_if_empty_function(target.im_func) space = target.im_self.space if self.config.option.runappdirect: appexec_definitions = self.parent.obj.__dict__ spaceconfig = getattr(self.parent.obj, 'spaceconfig', None) usemodules = spaceconfig.get('usemodules') if spaceconfig else None return run_with_python(self.config.option.python, src, usemodules, > **appexec_definitions) tool\pytest\apptest.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ python_ = 'd:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\pypy\\goal\\pypy3.11-c.exe' target_ = <function test_set_wakeup_fd_invalid at 0x000001e3f0059bc8> usemodules = ['_signal', 'time', '_socket'] definitions = {'appdirect': True, 'posix': (<py._code.source.Source object at 0x000001e3f01d30f8>, []), 'temppath': u'd:\\systemtemp\\pytest\\pytest-of-matti\\pytest-1028\\signal\\foo.txt'} defs = ['self.appdirect = True\n', 'def anonymous(): import nt as m ; return m', 'self.posix = anonymous()\n', "self.temppath = 'd:\\\\systemtemp\\\\pytest\\\\pytest-of-matti\\\\pytest-1028\\\\signal\\\\foo.txt'\n"] symbol = 'temppath' value = u'd:\\systemtemp\\pytest\\pytest-of-matti\\pytest-1028\\signal\\foo.txt' code = <py._code.source.Source object at 0x000001e3f01d30f8>, args = '' arg_repr = [] def run_with_python(python_, target_, usemodules, **definitions): if python_ is None: py.test.skip("Cannot find the default python3 interpreter to run with -A") defs = [] for symbol, value in sorted(definitions.items()): if isinstance(value, tuple) and isinstance(value[0], py.code.Source): code, args = value defs.append(str(code)) arg_repr = [] for arg in args: if isinstance(arg, types.FunctionType): arg_repr.append(arg.__name__) elif isinstance(arg, types.MethodType): arg_repr.append(arg.__name__) else: arg_repr.append(py3k_repr(arg)) args = ', '.join(arg_repr) defs.append("self.%s = anonymous(%s)\n" % (symbol, args)) elif isinstance(value, types.MethodType): # "def w_method(self)" code = py.code.Code(value) defs.append(str(code.source())) defs.append("type(self).%s = %s\n" % (symbol, value.__name__)) elif isinstance(value, types.ModuleType): name = value.__name__ defs.append("import %s; self.%s = %s\n" % (name, symbol, name)) elif isinstance(value, (str, unicode, int, long, float, list, tuple, dict)) or value is None: defs.append("self.%s = %s\n" % (symbol, py3k_repr(value))) check_usemodules = '' if usemodules: usemodules = [_rename_module(name) for name in usemodules] check_usemodules = """\ missing = set(%r).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing""" % usemodules source = list(py.code.Source(target_)) while source[0].startswith(('@py.test.mark.', '@pytest.mark.')): source.pop(0) source = source[1:] pyfile = udir.join('src.py') if isinstance(target_, str): # Special case of a docstring; the function name is the first word. target_name = target_.split('(', 1)[0] else: target_name = target_.__name__ with pyfile.open('w') as f: f.write(helpers % (pypyroot, check_usemodules)) f.write('\n'.join(defs)) f.write('def %s():\n' % target_name) f.write('\n'.join(source)) f.write("\ntry:\n %s()\n" % target_name) f.write('finally:\n print("===aefwuiheawiu===")') helper_dir = os.path.join(pypydir, 'tool', 'cpyext') env = os.environ.copy() env['PYTHONPATH'] = helper_dir res, stdout, stderr = run_subprocess( python_, [str(pyfile)], env=env) print pyfile.read() print "from", str(pyfile) print >> sys.stdout, stdout print >> sys.stderr, stderr if res == 81: py.test.skip('%r was not compiled w/ required usemodules: %r' % (python_, usemodules)) elif res != 0: raise AssertionError( > "Subprocess failed with exit code %s:\n%s" % (res, stderr)) E AssertionError: Subprocess failed with exit code 1: E Traceback (most recent call last): E File "d:\systemtemp\pytest\usession-py3.11-997\src.py", line 86, in <module> E test_set_wakeup_fd_invalid() E File "d:\systemtemp\pytest\usession-py3.11-997\src.py", line 84, in test_set_wakeup_fd_invalid E raises((ValueError, OSError), signal.set_wakeup_fd, fd) E File "d:\systemtemp\pytest\usession-py3.11-997\src.py", line 53, in raises E raise AssertionError("DID NOT RAISE") E AssertionError: DID NOT RAISE tool\pytest\apptest.py:239: AssertionError ---------------------------- Captured stdout call ----------------------------- # -*- encoding: utf-8 -*- if 1: import sys sys.path.append('d:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build') missing = set(['_signal', 'time', '_socket']).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing def skip(message): print(message) raise SystemExit(0) __builtins__.skip = skip __builtins__.py3k_skip = skip class ExceptionWrapper: pass def raises(exc, *args, **kwargs): if not args: return RaisesContext(exc) func = args[0] args = args[1:] import os try: if isinstance(func, str): if func.startswith((' ', os.linesep, '\n')): # it's probably an indented block, so we prefix if True: # to avoid SyntaxError func = "if True:\n" + func frame = sys._getframe(1) exec(func, frame.f_globals, frame.f_locals) else: func(*args, **kwargs) except exc as e: res = ExceptionWrapper() res.value = e res.traceback = e.__traceback__ return res else: raise AssertionError("DID NOT RAISE") class RaisesContext(object): def __init__(self, expected_exception): self.expected_exception = expected_exception self.excinfo = None def __enter__(self): return self def __exit__(self, *tp): __tracebackhide__ = True if tp[0] is None: raise AssertionError("DID NOT RAISE") self.value = tp[1] return issubclass(tp[0], self.expected_exception) __builtins__.raises = raises class Test: pass self = Test() self.appdirect = True def anonymous(): import nt as m ; return m self.posix = anonymous() self.temppath = 'd:\\systemtemp\\pytest\\pytest-of-matti\\pytest-1028\\signal\\foo.txt' def test_set_wakeup_fd_invalid(): import _signal as signal with open(self.temppath, 'wb') as f: fd = f.fileno() raises((ValueError, OSError), signal.set_wakeup_fd, fd) try: test_set_wakeup_fd_invalid() finally: print("===aefwuiheawiu===") from d:\systemtemp\pytest\usession-py3.11-997\src.py ===aefwuiheawiu=== ---------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "d:\systemtemp\pytest\usession-py3.11-997\src.py", line 86, in <module> test_set_wakeup_fd_invalid() File "d:\systemtemp\pytest\usession-py3.11-997\src.py", line 84, in test_set_wakeup_fd_invalid raises((ValueError, OSError), signal.set_wakeup_fd, fd) File "d:\systemtemp\pytest\usession-py3.11-997\src.py", line 53, in raises raise AssertionError("DID NOT RAISE") AssertionError: DID NOT RAISE =========================== short test summary info =========================== FAIL module\signal\test\test_signal.py::AppTestSignal::()::test_set_wakeup_fd_invalid =============== 1 failed, 15 passed, 9 skipped in 5.40 seconds ================ ++ 06:59:40 starting module/struct/test [125 started in total] __ module/struct/test [124 done in total, somefailed=False] ___________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 7 items module\struct\test\test_struct.py ....... ========================== 7 passed in 3.04 seconds =========================== ++ 06:59:47 starting module/sys/test [126 started in total] __ module/sys/test [125 done in total, somefailed=False] ______________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 69 items module\sys\test\test_sysmodule.py .................ss............................................ module\sys\test\test_version.py ...... ==================== 67 passed, 2 skipped in 21.42 seconds ==================== ++ 07:00:16 starting module/termios/test [127 started in total] __ module/termios/test [126 done in total, somefailed=False] __________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items / 1 skipped ========================== 1 skipped in 0.07 seconds ========================== ++ 07:00:20 starting module/test_lib_pypy [128 started in total] __ module/cpyext/test/test_typeobject.py [127 done in total, somefailed=True] _ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 90 items module\cpyext\test\test_typeobject.py ........................................................FF................................ ================================== FAILURES =================================== ___________ AppTestSlots.test_multiple_inheritance_small_basicsize ____________ self = <CallInfo when='call' exception: Subprocess failed with exit code 1: Traceback (most recent call last): File "d:\py...oft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 > func = <function <lambda> at 0x000001a5c83a16a0>, when = 'call' def __init__(self, func, when): #: context of invocation: one of "setup", "call", #: "teardown", "memocollect" self.when = when self.start = time() try: > self.result = func() ..\_pytest\runner.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > return CallInfo(lambda: ihook(item=item, **kwds), when=when) ..\_pytest\runner.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'> kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_multiple_inheritance_small_basi...: <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_multiple_inheritance_small_basicsize'>} def __call__(self, **kwargs): assert not self.is_historic() > return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) ..\_pytest\vendored_packages\pluggy.py:724: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0x000001a5c1c9e8a8> hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_multiple_inheritance_small_basi...: <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_multiple_inheritance_small_basicsize'>} def _hookexec(self, hook, methods, kwargs): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook, methods, kwargs) ..\_pytest\vendored_packages\pluggy.py:338: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_multiple_inheritance_small_basi...: <_MultiCall 0 results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_multiple_inheritance_small_basicsize'>} self._inner_hookexec = lambda hook, methods, kwargs: \ > _MultiCall(methods, kwargs, hook.spec_opts).execute() ..\_pytest\vendored_packages\pluggy.py:333: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_multiple_inheritance_small_basicsize'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: > return _wrapped_call(hook_impl.function(*args), self.execute) ..\_pytest\vendored_packages\pluggy.py:595: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ wrap_controller = <generator object pytest_runtest_call at 0x000001a5c739f6c8> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i..._basicsize'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def _wrapped_call(wrap_controller, func): """ Wrap calling to a function with a generator which needs to yield exactly once. The yield point will trigger calling the wrapped function and return its _CallOutcome to the yield point. The generator then needs to finish (raise StopIteration) in order for the wrapped call to complete. """ try: next(wrap_controller) # first yield except StopIteration: _raise_wrapfail(wrap_controller, "did not yield") call_outcome = _CallOutcome(func) try: wrap_controller.send(call_outcome) _raise_wrapfail(wrap_controller, "has second yield") except StopIteration: pass > return call_outcome.get_result() ..\_pytest\vendored_packages\pluggy.py:253: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000001a5c5b02ea0> def get_result(self): if self.excinfo is None: return self.result else: ex = self.excinfo if _py3: raise ex[1].with_traceback(ex[2]) > _reraise(*ex) # noqa ..\_pytest\vendored_packages\pluggy.py:279: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000001a5c5b02ea0> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i..._basicsize'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def __init__(self, func): try: > self.result = func() ..\_pytest\vendored_packages\pluggy.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_multiple_inheritance_small_basicsize'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: return _wrapped_call(hook_impl.function(*args), self.execute) > res = hook_impl.function(*args) ..\_pytest\vendored_packages\pluggy.py:596: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = <AppTestMethod 'test_multiple_inheritance_small_basicsize'> def pytest_runtest_call(item): try: > item.runtest() ..\_pytest\runner.py:91: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <AppTestMethod 'test_multiple_inheritance_small_basicsize'> def runtest(self): target = self.obj src = extract_docstring_if_empty_function(target.im_func) space = target.im_self.space if self.config.option.runappdirect: appexec_definitions = self.parent.obj.__dict__ spaceconfig = getattr(self.parent.obj, 'spaceconfig', None) usemodules = spaceconfig.get('usemodules') if spaceconfig else None return run_with_python(self.config.option.python, src, usemodules, > **appexec_definitions) tool\pytest\apptest.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ python_ = 'd:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\pypy\\goal\\pypy3.11-c.exe' target_ = <function test_multiple_inheritance_small_basicsize at 0x000001a5c654f5b0> usemodules = ['cpyext', '_thread', '_struct', 'array', 'itertools', 'time', ...] definitions = {'_check_type_object': <pypy.interpreter.gateway.interp2app object at 0x000001a5c6587088>, 'compile_module': <bound me...6016d08>>, 'here': u'd:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\pypy\\module\\cpyext\\test', ...} defs = ['def w_compile_module(self, name,\n source_files=None, source_strings=None):\n from extbuild import get_sys...e=prologue,\n include_dirs=include_dirs, more_init=more_init,\n PY_SSIZE_T_CLEAN=PY_SSIZE_T_CLEAN)', ...] symbol = 'udir', value = u'd:\\systemtemp\\pytest\\usession-py3.11-974' code = <py._code.code.Code object at 0x000001a5c6017f68> def run_with_python(python_, target_, usemodules, **definitions): if python_ is None: py.test.skip("Cannot find the default python3 interpreter to run with -A") defs = [] for symbol, value in sorted(definitions.items()): if isinstance(value, tuple) and isinstance(value[0], py.code.Source): code, args = value defs.append(str(code)) arg_repr = [] for arg in args: if isinstance(arg, types.FunctionType): arg_repr.append(arg.__name__) elif isinstance(arg, types.MethodType): arg_repr.append(arg.__name__) else: arg_repr.append(py3k_repr(arg)) args = ', '.join(arg_repr) defs.append("self.%s = anonymous(%s)\n" % (symbol, args)) elif isinstance(value, types.MethodType): # "def w_method(self)" code = py.code.Code(value) defs.append(str(code.source())) defs.append("type(self).%s = %s\n" % (symbol, value.__name__)) elif isinstance(value, types.ModuleType): name = value.__name__ defs.append("import %s; self.%s = %s\n" % (name, symbol, name)) elif isinstance(value, (str, unicode, int, long, float, list, tuple, dict)) or value is None: defs.append("self.%s = %s\n" % (symbol, py3k_repr(value))) check_usemodules = '' if usemodules: usemodules = [_rename_module(name) for name in usemodules] check_usemodules = """\ missing = set(%r).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing""" % usemodules source = list(py.code.Source(target_)) while source[0].startswith(('@py.test.mark.', '@pytest.mark.')): source.pop(0) source = source[1:] pyfile = udir.join('src.py') if isinstance(target_, str): # Special case of a docstring; the function name is the first word. target_name = target_.split('(', 1)[0] else: target_name = target_.__name__ with pyfile.open('w') as f: f.write(helpers % (pypyroot, check_usemodules)) f.write('\n'.join(defs)) f.write('def %s():\n' % target_name) f.write('\n'.join(source)) f.write("\ntry:\n %s()\n" % target_name) f.write('finally:\n print("===aefwuiheawiu===")') helper_dir = os.path.join(pypydir, 'tool', 'cpyext') env = os.environ.copy() env['PYTHONPATH'] = helper_dir res, stdout, stderr = run_subprocess( python_, [str(pyfile)], env=env) print pyfile.read() print "from", str(pyfile) print >> sys.stdout, stdout print >> sys.stderr, stderr if res == 81: py.test.skip('%r was not compiled w/ required usemodules: %r' % (python_, usemodules)) elif res != 0: raise AssertionError( > "Subprocess failed with exit code %s:\n%s" % (res, stderr)) E AssertionError: Subprocess failed with exit code 1: E Traceback (most recent call last): E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\spawn.py", line 87, in spawn E subprocess.check_call(cmd, env=_inject_macos_ver(env)) E ^^^^^^^^^^ E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\subprocess.py", line 413, in check_call E raise CalledProcessError(retcode, cmd) E subprocess.CalledProcessError: Command '['d:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x64\\cl.exe', '/we4013', '/std:c11', '/c', '/nologo', '/O2', '/W3', '/GL', '/DNDEBUG', '/MD', '-Id:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\include', '-Id:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\include', '-Id:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\ATLMFC\\include', '-Id:\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include', '-IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.20348.0\\ucrt', '-IC:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.20348.0\\\\um', '-IC:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.20348.0\\\\shared', '-IC:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.20348.0\\\\winrt', '-IC:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.20348.0\\\\cppwinrt', '-Id:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\externals\\include', '/Tcsource_0.c', '/Fosource_0.obj']' returned non-zero exit status 2. E E The above exception was the direct cause of the following exception: E E Traceback (most recent call last): E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\compilers\C\msvc.py", line 460, in compile E self.spawn(args) E ^^^^^ E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\compilers\C\msvc.py", line 563, in spawn E return super().spawn(cmd, env=env) E ^^^^^ E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\compilers\C\base.py", line 1158, in spawn E spawn(cmd, dry_run=self.dry_run, **kwargs) E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\spawn.py", line 93, in spawn E raise DistutilsExecError( E distutils.errors.DistutilsExecError: command 'd:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 E E During handling of the above exception, another exception occurred: E E Traceback (most recent call last): E File "d:\systemtemp\pytest\usession-py3.11-974\src.py", line 176, in <module> E test_multiple_inheritance_small_basicsize() E File "d:\systemtemp\pytest\usession-py3.11-974\src.py", line 125, in test_multiple_inheritance_small_basicsize E module = self.import_extension('foo', [ E ^^^^^^^^^^^^^^^^ E File "d:\systemtemp\pytest\usession-py3.11-974\src.py", line 95, in w_import_extension E return sys_info.import_extension( E ^^^^^^^^^^^^^^^^ E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\tool\cpyext\extbuild.py", line 96, in import_extension E return self.import_module( E ^^^^^^^^^^^^^ E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\tool\cpyext\extbuild.py", line 82, in import_module E mod = self.compile_extension_module( E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\tool\cpyext\extbuild.py", line 50, in compile_extension_module E soname = c_compile(source_files, outputfilename=str(dirname / modname), E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\tool\cpyext\extbuild.py", line 197, in c_compile E _build( E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\tool\cpyext\extbuild.py", line 231, in _build E res = compiler.compile([cfile.basename], E ^^^^^^^ E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\compilers\C\msvc.py", line 462, in compile E raise CompileError(msg) E distutils.compilers.C.errors.CompileError: command 'd:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 tool\pytest\apptest.py:239: AssertionError ---------------------------- Captured stdout call ----------------------------- # -*- encoding: utf-8 -*- if 1: import sys sys.path.append('d:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build') missing = set(['cpyext', '_thread', '_struct', 'array', 'itertools', 'time', 'binascii', 'mmap', '_signal', '_cffi_backend']).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing def skip(message): print(message) raise SystemExit(0) __builtins__.skip = skip __builtins__.py3k_skip = skip class ExceptionWrapper: pass def raises(exc, *args, **kwargs): if not args: return RaisesContext(exc) func = args[0] args = args[1:] import os try: if isinstance(func, str): if func.startswith((' ', os.linesep, '\n')): # it's probably an indented block, so we prefix if True: # to avoid SyntaxError func = "if True:\n" + func frame = sys._getframe(1) exec(func, frame.f_globals, frame.f_locals) else: func(*args, **kwargs) except exc as e: res = ExceptionWrapper() res.value = e res.traceback = e.__traceback__ return res else: raise AssertionError("DID NOT RAISE") class RaisesContext(object): def __init__(self, expected_exception): self.expected_exception = expected_exception self.excinfo = None def __enter__(self): return self def __exit__(self, *tp): __tracebackhide__ = True if tp[0] is None: raise AssertionError("DID NOT RAISE") self.value = tp[1] return issubclass(tp[0], self.expected_exception) __builtins__.raises = raises class Test: pass self = Test() def w_compile_module(self, name, source_files=None, source_strings=None): from extbuild import get_sys_info_app sys_info = get_sys_info_app(self.udir) return sys_info.compile_extension_module(name, source_files=source_files, source_strings=source_strings) type(self).compile_module = w_compile_module def w_debug_collect(self): import gc gc.collect() gc.collect() gc.collect() type(self).debug_collect = w_debug_collect self.here = 'd:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\pypy\\module\\cpyext\\test' def w_import_extension(self, modname, functions, prologue="", include_dirs=None, more_init="", PY_SSIZE_T_CLEAN=False): from extbuild import get_sys_info_app sys_info = get_sys_info_app(self.udir) return sys_info.import_extension( modname, functions, prologue=prologue, include_dirs=include_dirs, more_init=more_init, PY_SSIZE_T_CLEAN=PY_SSIZE_T_CLEAN) type(self).import_extension = w_import_extension def w_import_module(self, name, init=None, body='', filename=None, include_dirs=None, PY_SSIZE_T_CLEAN=False, use_imp=False): from extbuild import get_sys_info_app sys_info = get_sys_info_app(self.udir) return sys_info.import_module( name, init=init, body=body, filename=filename, include_dirs=include_dirs, PY_SSIZE_T_CLEAN=PY_SSIZE_T_CLEAN) type(self).import_module = w_import_module def w_load_module(self, mod, name): from extbuild import get_sys_info_app sys_info = get_sys_info_app(self.udir) return sys_info.load_module(mod, name) type(self).load_module = w_load_module self.runappdirect = True self.udir = 'd:\\systemtemp\\pytest\\usession-py3.11-974' def test_multiple_inheritance_small_basicsize(): # Regression test: two manually-allocated heap types whose tp_basicsize # is smaller than sizeof(PyHeapTypeObject) (as pybind11 does) must be # combinable in multiple inheritance when they share the same # tp_basicsize, because there is no actual instance-layout conflict. module = self.import_extension('foo', [ ("new_obj", "METH_NOARGS", ''' /* Simulate pybind11: instance struct is PyObject_HEAD + one ptr, which is << sizeof(PyHeapTypeObject). */ typedef struct { PyObject_HEAD; void *extra; } SmallInst; Py_ssize_t inst_size = (Py_ssize_t)sizeof(SmallInst); PyTypeObject *B1, *B2, *B12; B1 = (PyTypeObject*)PyType_Type.tp_alloc(&PyType_Type, 0); B2 = (PyTypeObject*)PyType_Type.tp_alloc(&PyType_Type, 0); B12 = (PyTypeObject*)PyType_Type.tp_alloc(&PyType_Type, 0); PyObject *n1 = PyUnicode_FromString("B1"); PyObject *n2 = PyUnicode_FromString("B2"); PyObject *n12 = PyUnicode_FromString("B12"); B1->tp_name = "B1"; B2->tp_name = "B2"; B12->tp_name = "B12"; B1->tp_basicsize = inst_size; B2->tp_basicsize = inst_size; B12->tp_basicsize = inst_size; ((PyHeapTypeObject*)B1)->ht_name = n1; ((PyHeapTypeObject*)B2)->ht_name = n2; ((PyHeapTypeObject*)B12)->ht_name = n12; ((PyHeapTypeObject*)B1)->ht_qualname = n1; ((PyHeapTypeObject*)B2)->ht_qualname = n2; ((PyHeapTypeObject*)B12)->ht_qualname = n12; B1->tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HEAPTYPE; B2->tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HEAPTYPE; B12->tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HEAPTYPE; B12->tp_base = B1; B12->tp_bases = PyTuple_Pack(2, B1, B2); if (PyType_Ready(B1) < 0) return NULL; if (PyType_Ready(B2) < 0) return NULL; if (PyType_Ready(B12) < 0) return NULL; PyObject *obj = PyObject_New(PyObject, B12); return obj; ''' ), ]) obj = module.new_obj() assert 'B12' in str(obj) try: test_multiple_inheritance_small_basicsize() finally: print("===aefwuiheawiu===") from d:\systemtemp\pytest\usession-py3.11-974\src.py source_0.c source_0.c(11): error C2059: syntax error: ';' source_0.c(15): error C2040: 'B1': 'int' differs in levels of indirection from 'PyTypeObject *' source_0.c(16): error C2040: 'B2': 'int' differs in levels of indirection from 'PyTypeObject *' source_0.c(17): error C2040: 'B12': 'int' differs in levels of indirection from 'PyTypeObject *' source_0.c(19): error C2099: initializer is not a constant source_0.c(20): error C2099: initializer is not a constant source_0.c(21): error C2099: initializer is not a constant source_0.c(23): error C2143: syntax error: missing '{' before '->' source_0.c(23): error C2059: syntax error: '->' source_0.c(24): error C2143: syntax error: missing '{' before '->' source_0.c(24): error C2059: syntax error: '->' source_0.c(25): error C2143: syntax error: missing '{' before '->' source_0.c(25): error C2059: syntax error: '->' source_0.c(27): error C2143: syntax error: missing '{' before '->' source_0.c(27): error C2059: syntax error: '->' source_0.c(28): error C2143: syntax error: missing '{' before '->' source_0.c(28): error C2059: syntax error: '->' source_0.c(29): error C2143: syntax error: missing '{' before '->' source_0.c(29): error C2059: syntax error: '->' source_0.c(31): error C2059: syntax error: '<parameter-list>' source_0.c(32): error C2059: syntax error: '<parameter-list>' source_0.c(33): error C2059: syntax error: '<parameter-list>' source_0.c(34): error C2059: syntax error: '<parameter-list>' source_0.c(35): error C2059: syntax error: '<parameter-list>' source_0.c(36): error C2059: syntax error: '<parameter-list>' source_0.c(38): error C2143: syntax error: missing '{' before '->' source_0.c(38): error C2059: syntax error: '->' source_0.c(39): error C2143: syntax error: missing '{' before '->' source_0.c(39): error C2059: syntax error: '->' source_0.c(40): error C2143: syntax error: missing '{' before '->' source_0.c(40): error C2059: syntax error: '->' source_0.c(42): error C2143: syntax error: missing '{' before '->' source_0.c(42): error C2059: syntax error: '->' source_0.c(43): error C2143: syntax error: missing '{' before '->' source_0.c(43): error C2059: syntax error: '->' source_0.c(45): error C2059: syntax error: 'if' source_0.c(46): error C2059: syntax error: 'if' source_0.c(47): error C2059: syntax error: 'if' source_0.c(49): error C2099: initializer is not a constant source_0.c(50): error C2059: syntax error: 'return' source_0.c(52): error C2059: syntax error: '}' source_0.c(63): error C2065: 'methods': undeclared identifier source_0.c(58): error C2099: initializer is not a constant ===aefwuiheawiu=== ---------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\spawn.py", line 87, in spawn subprocess.check_call(cmd, env=_inject_macos_ver(env)) ^^^^^^^^^^ File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\subprocess.py", line 413, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['d:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x64\\cl.exe', '/we4013', '/std:c11', '/c', '/nologo', '/O2', '/W3', '/GL', '/DNDEBUG', '/MD', '-Id:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\include', '-Id:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\include', '-Id:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\ATLMFC\\include', '-Id:\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include', '-IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.20348.0\\ucrt', '-IC:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.20348.0\\\\um', '-IC:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.20348.0\\\\shared', '-IC:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.20348.0\\\\winrt', '-IC:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.20348.0\\\\cppwinrt', '-Id:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\externals\\include', '/Tcsource_0.c', '/Fosource_0.obj']' returned non-zero exit status 2. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\compilers\C\msvc.py", line 460, in compile self.spawn(args) ^^^^^ File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\compilers\C\msvc.py", line 563, in spawn return super().spawn(cmd, env=env) ^^^^^ File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\compilers\C\base.py", line 1158, in spawn spawn(cmd, dry_run=self.dry_run, **kwargs) File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\spawn.py", line 93, in spawn raise DistutilsExecError( distutils.errors.DistutilsExecError: command 'd:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "d:\systemtemp\pytest\usession-py3.11-974\src.py", line 176, in <module> test_multiple_inheritance_small_basicsize() File "d:\systemtemp\pytest\usession-py3.11-974\src.py", line 125, in test_multiple_inheritance_small_basicsize module = self.import_extension('foo', [ ^^^^^^^^^^^^^^^^ File "d:\systemtemp\pytest\usession-py3.11-974\src.py", line 95, in w_import_extension return sys_info.import_extension( ^^^^^^^^^^^^^^^^ File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\tool\cpyext\extbuild.py", line 96, in import_extension return self.import_module( ^^^^^^^^^^^^^ File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\tool\cpyext\extbuild.py", line 82, in import_module mod = self.compile_extension_module( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\tool\cpyext\extbuild.py", line 50, in compile_extension_module soname = c_compile(source_files, outputfilename=str(dirname / modname), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\tool\cpyext\extbuild.py", line 197, in c_compile _build( File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\tool\cpyext\extbuild.py", line 231, in _build res = compiler.compile([cfile.basename], ^^^^^^^ File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\compilers\C\msvc.py", line 462, in compile raise CompileError(msg) distutils.compilers.C.errors.CompileError: command 'd:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 ___ AppTestSlots.test_multiple_inheritance_python_subclass_of_two_cpytypes ____ self = <CallInfo when='call' exception: Subprocess failed with exit code 1: Traceback (most recent call last): File "d:\py...oft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 > func = <function <lambda> at 0x000001a5c8444188>, when = 'call' def __init__(self, func, when): #: context of invocation: one of "setup", "call", #: "teardown", "memocollect" self.when = when self.start = time() try: > self.result = func() ..\_pytest\runner.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > return CallInfo(lambda: ihook(item=item, **kwds), when=when) ..\_pytest\runner.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'> kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_multiple_inheritance_python_sub...results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_multiple_inheritance_python_subclass_of_two_cpytypes'>} def __call__(self, **kwargs): assert not self.is_historic() > return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) ..\_pytest\vendored_packages\pluggy.py:724: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0x000001a5c1c9e8a8> hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_multiple_inheritance_python_sub...results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_multiple_inheritance_python_subclass_of_two_cpytypes'>} def _hookexec(self, hook, methods, kwargs): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook, methods, kwargs) ..\_pytest\vendored_packages\pluggy.py:338: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_multiple_inheritance_python_sub...results, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_multiple_inheritance_python_subclass_of_two_cpytypes'>} self._inner_hookexec = lambda hook, methods, kwargs: \ > _MultiCall(methods, kwargs, hook.spec_opts).execute() ..\_pytest\vendored_packages\pluggy.py:333: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_multiple_inheritance_python_subclass_of_two_cpytypes'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: > return _wrapped_call(hook_impl.function(*args), self.execute) ..\_pytest\vendored_packages\pluggy.py:595: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ wrap_controller = <generator object pytest_runtest_call at 0x000001a5c739f970> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i...o_cpytypes'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def _wrapped_call(wrap_controller, func): """ Wrap calling to a function with a generator which needs to yield exactly once. The yield point will trigger calling the wrapped function and return its _CallOutcome to the yield point. The generator then needs to finish (raise StopIteration) in order for the wrapped call to complete. """ try: next(wrap_controller) # first yield except StopIteration: _raise_wrapfail(wrap_controller, "did not yield") call_outcome = _CallOutcome(func) try: wrap_controller.send(call_outcome) _raise_wrapfail(wrap_controller, "has second yield") except StopIteration: pass > return call_outcome.get_result() ..\_pytest\vendored_packages\pluggy.py:253: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000001a5c7936060> def get_result(self): if self.excinfo is None: return self.result else: ex = self.excinfo if _py3: raise ex[1].with_traceback(ex[2]) > _reraise(*ex) # noqa ..\_pytest\vendored_packages\pluggy.py:279: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000001a5c7936060> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i...o_cpytypes'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def __init__(self, func): try: > self.result = func() ..\_pytest\vendored_packages\pluggy.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_multiple_inheritance_python_subclass_of_two_cpytypes'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: return _wrapped_call(hook_impl.function(*args), self.execute) > res = hook_impl.function(*args) ..\_pytest\vendored_packages\pluggy.py:596: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = <AppTestMethod 'test_multiple_inheritance_python_subclass_of_two_cpytypes'> def pytest_runtest_call(item): try: > item.runtest() ..\_pytest\runner.py:91: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <AppTestMethod 'test_multiple_inheritance_python_subclass_of_two_cpytypes'> def runtest(self): target = self.obj src = extract_docstring_if_empty_function(target.im_func) space = target.im_self.space if self.config.option.runappdirect: appexec_definitions = self.parent.obj.__dict__ spaceconfig = getattr(self.parent.obj, 'spaceconfig', None) usemodules = spaceconfig.get('usemodules') if spaceconfig else None return run_with_python(self.config.option.python, src, usemodules, > **appexec_definitions) tool\pytest\apptest.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ python_ = 'd:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\pypy\\goal\\pypy3.11-c.exe' target_ = <function test_multiple_inheritance_python_subclass_of_two_cpytypes at 0x000001a5c654f628> usemodules = ['cpyext', '_thread', '_struct', 'array', 'itertools', 'time', ...] definitions = {'_check_type_object': <pypy.interpreter.gateway.interp2app object at 0x000001a5c6587088>, 'compile_module': <bound me...65d4c60>>, 'here': u'd:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\pypy\\module\\cpyext\\test', ...} defs = ['def w_compile_module(self, name,\n source_files=None, source_strings=None):\n from extbuild import get_sys...e=prologue,\n include_dirs=include_dirs, more_init=more_init,\n PY_SSIZE_T_CLEAN=PY_SSIZE_T_CLEAN)', ...] symbol = 'udir', value = u'd:\\systemtemp\\pytest\\usession-py3.11-974' code = <py._code.code.Code object at 0x000001a5c65d4c98> def run_with_python(python_, target_, usemodules, **definitions): if python_ is None: py.test.skip("Cannot find the default python3 interpreter to run with -A") defs = [] for symbol, value in sorted(definitions.items()): if isinstance(value, tuple) and isinstance(value[0], py.code.Source): code, args = value defs.append(str(code)) arg_repr = [] for arg in args: if isinstance(arg, types.FunctionType): arg_repr.append(arg.__name__) elif isinstance(arg, types.MethodType): arg_repr.append(arg.__name__) else: arg_repr.append(py3k_repr(arg)) args = ', '.join(arg_repr) defs.append("self.%s = anonymous(%s)\n" % (symbol, args)) elif isinstance(value, types.MethodType): # "def w_method(self)" code = py.code.Code(value) defs.append(str(code.source())) defs.append("type(self).%s = %s\n" % (symbol, value.__name__)) elif isinstance(value, types.ModuleType): name = value.__name__ defs.append("import %s; self.%s = %s\n" % (name, symbol, name)) elif isinstance(value, (str, unicode, int, long, float, list, tuple, dict)) or value is None: defs.append("self.%s = %s\n" % (symbol, py3k_repr(value))) check_usemodules = '' if usemodules: usemodules = [_rename_module(name) for name in usemodules] check_usemodules = """\ missing = set(%r).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing""" % usemodules source = list(py.code.Source(target_)) while source[0].startswith(('@py.test.mark.', '@pytest.mark.')): source.pop(0) source = source[1:] pyfile = udir.join('src.py') if isinstance(target_, str): # Special case of a docstring; the function name is the first word. target_name = target_.split('(', 1)[0] else: target_name = target_.__name__ with pyfile.open('w') as f: f.write(helpers % (pypyroot, check_usemodules)) f.write('\n'.join(defs)) f.write('def %s():\n' % target_name) f.write('\n'.join(source)) f.write("\ntry:\n %s()\n" % target_name) f.write('finally:\n print("===aefwuiheawiu===")') helper_dir = os.path.join(pypydir, 'tool', 'cpyext') env = os.environ.copy() env['PYTHONPATH'] = helper_dir res, stdout, stderr = run_subprocess( python_, [str(pyfile)], env=env) print pyfile.read() print "from", str(pyfile) print >> sys.stdout, stdout print >> sys.stderr, stderr if res == 81: py.test.skip('%r was not compiled w/ required usemodules: %r' % (python_, usemodules)) elif res != 0: raise AssertionError( > "Subprocess failed with exit code %s:\n%s" % (res, stderr)) E AssertionError: Subprocess failed with exit code 1: E Traceback (most recent call last): E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\spawn.py", line 87, in spawn E subprocess.check_call(cmd, env=_inject_macos_ver(env)) E ^^^^^^^^^^ E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\subprocess.py", line 413, in check_call E raise CalledProcessError(retcode, cmd) E subprocess.CalledProcessError: Command '['d:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x64\\cl.exe', '/we4013', '/std:c11', '/c', '/nologo', '/O2', '/W3', '/GL', '/DNDEBUG', '/MD', '-Id:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\include', '-Id:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\include', '-Id:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\ATLMFC\\include', '-Id:\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include', '-IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.20348.0\\ucrt', '-IC:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.20348.0\\\\um', '-IC:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.20348.0\\\\shared', '-IC:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.20348.0\\\\winrt', '-IC:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.20348.0\\\\cppwinrt', '-Id:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\externals\\include', '/Tcsource_0.c', '/Fosource_0.obj']' returned non-zero exit status 2. E E The above exception was the direct cause of the following exception: E E Traceback (most recent call last): E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\compilers\C\msvc.py", line 460, in compile E self.spawn(args) E ^^^^^ E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\compilers\C\msvc.py", line 563, in spawn E return super().spawn(cmd, env=env) E ^^^^^ E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\compilers\C\base.py", line 1158, in spawn E spawn(cmd, dry_run=self.dry_run, **kwargs) E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\spawn.py", line 93, in spawn E raise DistutilsExecError( E distutils.errors.DistutilsExecError: command 'd:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 E E During handling of the above exception, another exception occurred: E E Traceback (most recent call last): E File "d:\systemtemp\pytest\usession-py3.11-974\src.py", line 180, in <module> E test_multiple_inheritance_python_subclass_of_two_cpytypes() E File "d:\systemtemp\pytest\usession-py3.11-974\src.py", line 127, in test_multiple_inheritance_python_subclass_of_two_cpytypes E module = self.import_extension('foo', [ E ^^^^^^^^^^^^^^^^ E File "d:\systemtemp\pytest\usession-py3.11-974\src.py", line 95, in w_import_extension E return sys_info.import_extension( E ^^^^^^^^^^^^^^^^ E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\tool\cpyext\extbuild.py", line 96, in import_extension E return self.import_module( E ^^^^^^^^^^^^^ E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\tool\cpyext\extbuild.py", line 82, in import_module E mod = self.compile_extension_module( E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\tool\cpyext\extbuild.py", line 50, in compile_extension_module E soname = c_compile(source_files, outputfilename=str(dirname / modname), E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\tool\cpyext\extbuild.py", line 197, in c_compile E _build( E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\tool\cpyext\extbuild.py", line 231, in _build E res = compiler.compile([cfile.basename], E ^^^^^^^ E File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\compilers\C\msvc.py", line 462, in compile E raise CompileError(msg) E distutils.compilers.C.errors.CompileError: command 'd:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 tool\pytest\apptest.py:239: AssertionError ---------------------------- Captured stdout call ----------------------------- # -*- encoding: utf-8 -*- if 1: import sys sys.path.append('d:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build') missing = set(['cpyext', '_thread', '_struct', 'array', 'itertools', 'time', 'binascii', 'mmap', '_signal', '_cffi_backend']).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing def skip(message): print(message) raise SystemExit(0) __builtins__.skip = skip __builtins__.py3k_skip = skip class ExceptionWrapper: pass def raises(exc, *args, **kwargs): if not args: return RaisesContext(exc) func = args[0] args = args[1:] import os try: if isinstance(func, str): if func.startswith((' ', os.linesep, '\n')): # it's probably an indented block, so we prefix if True: # to avoid SyntaxError func = "if True:\n" + func frame = sys._getframe(1) exec(func, frame.f_globals, frame.f_locals) else: func(*args, **kwargs) except exc as e: res = ExceptionWrapper() res.value = e res.traceback = e.__traceback__ return res else: raise AssertionError("DID NOT RAISE") class RaisesContext(object): def __init__(self, expected_exception): self.expected_exception = expected_exception self.excinfo = None def __enter__(self): return self def __exit__(self, *tp): __tracebackhide__ = True if tp[0] is None: raise AssertionError("DID NOT RAISE") self.value = tp[1] return issubclass(tp[0], self.expected_exception) __builtins__.raises = raises class Test: pass self = Test() def w_compile_module(self, name, source_files=None, source_strings=None): from extbuild import get_sys_info_app sys_info = get_sys_info_app(self.udir) return sys_info.compile_extension_module(name, source_files=source_files, source_strings=source_strings) type(self).compile_module = w_compile_module def w_debug_collect(self): import gc gc.collect() gc.collect() gc.collect() type(self).debug_collect = w_debug_collect self.here = 'd:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\pypy\\module\\cpyext\\test' def w_import_extension(self, modname, functions, prologue="", include_dirs=None, more_init="", PY_SSIZE_T_CLEAN=False): from extbuild import get_sys_info_app sys_info = get_sys_info_app(self.udir) return sys_info.import_extension( modname, functions, prologue=prologue, include_dirs=include_dirs, more_init=more_init, PY_SSIZE_T_CLEAN=PY_SSIZE_T_CLEAN) type(self).import_extension = w_import_extension def w_import_module(self, name, init=None, body='', filename=None, include_dirs=None, PY_SSIZE_T_CLEAN=False, use_imp=False): from extbuild import get_sys_info_app sys_info = get_sys_info_app(self.udir) return sys_info.import_module( name, init=init, body=body, filename=filename, include_dirs=include_dirs, PY_SSIZE_T_CLEAN=PY_SSIZE_T_CLEAN) type(self).import_module = w_import_module def w_load_module(self, mod, name): from extbuild import get_sys_info_app sys_info = get_sys_info_app(self.udir) return sys_info.load_module(mod, name) type(self).load_module = w_load_module self.runappdirect = True self.udir = 'd:\\systemtemp\\pytest\\usession-py3.11-974' def test_multiple_inheritance_python_subclass_of_two_cpytypes(): # Regression test: Python code must be able to create a class that # inherits from two cpytype bases that share the same solid base # (i.e. have equivalent layouts), as pybind11 does with Base1/Base2. # The previous fix (issue 5481) only covered the case where the new # type itself was a cpytype (created via PyType_Ready); this covers # the Python-level "class MI1(B1, B2):" case. module = self.import_extension('foo', [ ("get_bases", "METH_NOARGS", ''' /* Simulate two independent pybind11-style types: both have the same tp_basicsize (larger than PyObject but smaller than PyHeapTypeObject), both inherit from the same base. */ typedef struct { PyObject_HEAD; void *holder; } PybindInst; Py_ssize_t inst_size = (Py_ssize_t)sizeof(PybindInst); /* Shared object base (analogous to pybind11_object). */ PyTypeObject *ObjBase; ObjBase = (PyTypeObject*)PyType_Type.tp_alloc(&PyType_Type, 0); PyObject *nobj = PyUnicode_FromString("ObjBase"); ObjBase->tp_name = "ObjBase"; ObjBase->tp_basicsize = inst_size; ((PyHeapTypeObject*)ObjBase)->ht_name = nobj; ((PyHeapTypeObject*)ObjBase)->ht_qualname = nobj; ObjBase->tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HEAPTYPE; if (PyType_Ready(ObjBase) < 0) return NULL; PyTypeObject *B1, *B2; B1 = (PyTypeObject*)PyType_Type.tp_alloc(&PyType_Type, 0); B2 = (PyTypeObject*)PyType_Type.tp_alloc(&PyType_Type, 0); PyObject *n1 = PyUnicode_FromString("B1"); PyObject *n2 = PyUnicode_FromString("B2"); B1->tp_name = "B1"; B2->tp_name = "B2"; B1->tp_basicsize = inst_size; B2->tp_basicsize = inst_size; ((PyHeapTypeObject*)B1)->ht_name = n1; ((PyHeapTypeObject*)B2)->ht_name = n2; ((PyHeapTypeObject*)B1)->ht_qualname = n1; ((PyHeapTypeObject*)B2)->ht_qualname = n2; B1->tp_base = ObjBase; Py_INCREF(ObjBase); B2->tp_base = ObjBase; Py_INCREF(ObjBase); B1->tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HEAPTYPE; B2->tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HEAPTYPE; if (PyType_Ready(B1) < 0) return NULL; if (PyType_Ready(B2) < 0) return NULL; return PyTuple_Pack(2, B1, B2); ''' ), ]) B1, B2 = module.get_bases() # This must not raise "instance layout conflicts in multiple inheritance" class MI1(B1, B2): pass obj = MI1() assert isinstance(obj, B1) assert isinstance(obj, B2) try: test_multiple_inheritance_python_subclass_of_two_cpytypes() finally: print("===aefwuiheawiu===") from d:\systemtemp\pytest\usession-py3.11-974\src.py source_0.c source_0.c(12): error C2059: syntax error: ';' source_0.c(17): error C2040: 'ObjBase': 'int' differs in levels of indirection from 'PyTypeObject *' source_0.c(18): error C2099: initializer is not a constant source_0.c(19): error C2143: syntax error: missing '{' before '->' source_0.c(19): error C2059: syntax error: '->' source_0.c(20): error C2143: syntax error: missing '{' before '->' source_0.c(20): error C2059: syntax error: '->' source_0.c(21): error C2059: syntax error: '<parameter-list>' source_0.c(22): error C2059: syntax error: '<parameter-list>' source_0.c(23): error C2143: syntax error: missing '{' before '->' source_0.c(23): error C2059: syntax error: '->' source_0.c(24): error C2059: syntax error: 'if' source_0.c(27): error C2040: 'B1': 'int' differs in levels of indirection from 'PyTypeObject *' source_0.c(28): error C2040: 'B2': 'int' differs in levels of indirection from 'PyTypeObject *' source_0.c(30): error C2099: initializer is not a constant source_0.c(31): error C2099: initializer is not a constant source_0.c(32): error C2143: syntax error: missing '{' before '->' source_0.c(32): error C2059: syntax error: '->' source_0.c(33): error C2143: syntax error: missing '{' before '->' source_0.c(33): error C2059: syntax error: '->' source_0.c(34): error C2143: syntax error: missing '{' before '->' source_0.c(34): error C2059: syntax error: '->' source_0.c(35): error C2143: syntax error: missing '{' before '->' source_0.c(35): error C2059: syntax error: '->' source_0.c(36): error C2059: syntax error: '<parameter-list>' source_0.c(37): error C2059: syntax error: '<parameter-list>' source_0.c(38): error C2059: syntax error: '<parameter-list>' source_0.c(39): error C2059: syntax error: '<parameter-list>' source_0.c(40): error C2143: syntax error: missing '{' before '->' source_0.c(40): error C2059: syntax error: '->' source_0.c(40): error C2143: syntax error: missing ')' before '(' source_0.c(40): error C2091: function returns function source_0.c(40): error C2059: syntax error: ')' source_0.c(40): error C2143: syntax error: missing ')' before ';' source_0.c(40): error C2373: 'Py_INCREF': redefinition; different type modifiers d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\include\object.h(499): note: see declaration of 'Py_INCREF' source_0.c(41): error C2143: syntax error: missing '{' before '->' source_0.c(41): error C2059: syntax error: '->' source_0.c(41): error C2143: syntax error: missing ')' before '(' source_0.c(41): error C2091: function returns function source_0.c(41): error C2059: syntax error: ')' source_0.c(41): error C2143: syntax error: missing ')' before ';' source_0.c(41): error C2373: 'Py_INCREF': redefinition; different type modifiers d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\include\object.h(499): note: see declaration of 'Py_INCREF' source_0.c(42): error C2143: syntax error: missing '{' before '->' source_0.c(42): error C2059: syntax error: '->' source_0.c(43): error C2143: syntax error: missing '{' before '->' source_0.c(43): error C2059: syntax error: '->' source_0.c(44): error C2059: syntax error: 'if' source_0.c(45): error C2059: syntax error: 'if' source_0.c(47): error C2059: syntax error: 'return' source_0.c(49): error C2059: syntax error: '}' source_0.c(60): error C2065: 'methods': undeclared identifier source_0.c(55): error C2099: initializer is not a constant ===aefwuiheawiu=== ---------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\spawn.py", line 87, in spawn subprocess.check_call(cmd, env=_inject_macos_ver(env)) ^^^^^^^^^^ File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\subprocess.py", line 413, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['d:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x64\\cl.exe', '/we4013', '/std:c11', '/c', '/nologo', '/O2', '/W3', '/GL', '/DNDEBUG', '/MD', '-Id:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\include', '-Id:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\include', '-Id:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\ATLMFC\\include', '-Id:\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include', '-IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.20348.0\\ucrt', '-IC:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.20348.0\\\\um', '-IC:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.20348.0\\\\shared', '-IC:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.20348.0\\\\winrt', '-IC:\\Program Files (x86)\\Windows Kits\\10\\\\include\\10.0.20348.0\\\\cppwinrt', '-Id:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\externals\\include', '/Tcsource_0.c', '/Fosource_0.obj']' returned non-zero exit status 2. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\compilers\C\msvc.py", line 460, in compile self.spawn(args) ^^^^^ File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\compilers\C\msvc.py", line 563, in spawn return super().spawn(cmd, env=env) ^^^^^ File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\compilers\C\base.py", line 1158, in spawn spawn(cmd, dry_run=self.dry_run, **kwargs) File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\spawn.py", line 93, in spawn raise DistutilsExecError( distutils.errors.DistutilsExecError: command 'd:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "d:\systemtemp\pytest\usession-py3.11-974\src.py", line 180, in <module> test_multiple_inheritance_python_subclass_of_two_cpytypes() File "d:\systemtemp\pytest\usession-py3.11-974\src.py", line 127, in test_multiple_inheritance_python_subclass_of_two_cpytypes module = self.import_extension('foo', [ ^^^^^^^^^^^^^^^^ File "d:\systemtemp\pytest\usession-py3.11-974\src.py", line 95, in w_import_extension return sys_info.import_extension( ^^^^^^^^^^^^^^^^ File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\tool\cpyext\extbuild.py", line 96, in import_extension return self.import_module( ^^^^^^^^^^^^^ File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\tool\cpyext\extbuild.py", line 82, in import_module mod = self.compile_extension_module( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\tool\cpyext\extbuild.py", line 50, in compile_extension_module soname = c_compile(source_files, outputfilename=str(dirname / modname), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\tool\cpyext\extbuild.py", line 197, in c_compile _build( File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\tool\cpyext\extbuild.py", line 231, in _build res = compiler.compile([cfile.basename], ^^^^^^^ File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\Lib\site-packages\setuptools\_distutils\compilers\C\msvc.py", line 462, in compile raise CompileError(msg) distutils.compilers.C.errors.CompileError: command 'd:\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 =========================== short test summary info =========================== FAIL module\cpyext\test\test_typeobject.py::AppTestSlots::()::test_multiple_inheritance_small_basicsize FAIL module\cpyext\test\test_typeobject.py::AppTestSlots::()::test_multiple_inheritance_python_subclass_of_two_cpytypes ==================== 2 failed, 88 passed in 790.49 seconds ==================== ++ 07:00:21 starting module/thread/test [129 started in total] __ module/test_lib_pypy [128 done in total, somefailed=False] _________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 238 items / 5 skipped module\test_lib_pypy\test_code_module.py ... module\test_lib_pypy\test_collections.py ..................... module\test_lib_pypy\test_marshal_extra.py ....................................................................................................................................................... module\test_lib_pypy\test_md5_extra.py ssssss module\test_lib_pypy\test_pickle_extra.py s module\test_lib_pypy\test_sha_extra.py ..... module\test_lib_pypy\test_site_extra.py . module\test_lib_pypy\test_stackless.py .............................. module\test_lib_pypy\test_stackless_pickling.py .. module\test_lib_pypy\test_structseq.py ........... module\test_lib_pypy\test_tputil.py ....... =================== 231 passed, 12 skipped in 13.96 seconds =================== ++ 07:00:38 starting module/time/test [130 started in total] __ module/time/test [129 done in total, somefailed=False] _____________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 0.09 seconds ========================= ++ 07:00:41 starting module/token/test [131 started in total] __ module/token/test [130 done in total, somefailed=False] ____________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 0.01 seconds ========================= ++ 07:00:45 starting module/unicodedata/test [132 started in total] __ module/unicodedata/test [131 done in total, somefailed=False] ______________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 19 items module\unicodedata\test\test_unicodedata.py ................... ========================== 19 passed in 3.71 seconds ========================== ++ 07:00:53 starting module/zipimport/test [133 started in total] __ module/thread/test [132 done in total, somefailed=False] ___________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 49 items module\thread\test\test_fork.py .... module\thread\test\test_import_lock.py .... module\thread\test\test_local.py ...... module\thread\test\test_lock.py ..............ssss.. module\thread\test\test_thread.py ............... ==================== 45 passed, 4 skipped in 27.58 seconds ==================== ++ 07:00:54 starting module/zlib/test [134 started in total] __ module/zipimport/test [133 done in total, somefailed=False] ________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 0 items ======================== no tests ran in 0.01 seconds ========================= __ module/zlib/test [134 done in total, somefailed=True] ______________________ D:\pypy_stuff\pypy2.7-v7.3.18\site-packages\hypothesis\extra\pytestplugin.py:61: HypothesisWarning: You are using Pytest version 2.9.2. Hypothesis tests work with any test runner, but our Pytest plugin requires Pytest 4.3 or newer. Note that the Pytest developers no longer support this version either! Disabling the Hypothesis pytest plugin... warnings.warn(PYTEST_TOO_OLD_MESSAGE % (pytest.__version__,), HypothesisWarning) [platform:msg] Updated environment with vsver 160, using x64 True [platform:msg] Updated environment with vsver 160, using x64 True ============================= test session starts ============================= platform win32 -- Python 2.7.18[pypy-7.3.18-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 pytest-2.9.2 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pytest.pyc rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, inifile: pytest.ini plugins: hypothesis-4.57.1 collected 38 items module\zlib\test\test_zlib.py ...............................F..F... ================================== FAILURES =================================== _ AppTestZlib.test_cannot_copy_decompressor_with_stream_in_inconsistent_state _ self = <CallInfo when='call' exception: Subprocess failed with exit code 1: File "d:\systemtemp\pytest\usession-py3.11-1007...nconsistent_state(self): ^^^ IndentationError: expected an indented block after function definition on line 83 > func = <function <lambda> at 0x000002c0185dc458>, when = 'call' def __init__(self, func, when): #: context of invocation: one of "setup", "call", #: "teardown", "memocollect" self.when = when self.start = time() try: > self.result = func() ..\_pytest\runner.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > return CallInfo(lambda: ihook(item=item, **kwds), when=when) ..\_pytest\runner.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'> kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_cannot_copy_decompressor_with_s...s, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_cannot_copy_decompressor_with_stream_in_inconsistent_state'>} def __call__(self, **kwargs): assert not self.is_historic() > return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) ..\_pytest\vendored_packages\pluggy.py:724: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0x000002c016ffe8a8> hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_cannot_copy_decompressor_with_s...s, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_cannot_copy_decompressor_with_stream_in_inconsistent_state'>} def _hookexec(self, hook, methods, kwargs): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook, methods, kwargs) ..\_pytest\vendored_packages\pluggy.py:338: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_cannot_copy_decompressor_with_s...s, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_cannot_copy_decompressor_with_stream_in_inconsistent_state'>} self._inner_hookexec = lambda hook, methods, kwargs: \ > _MultiCall(methods, kwargs, hook.spec_opts).execute() ..\_pytest\vendored_packages\pluggy.py:333: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_cannot_copy_decompressor_with_stream_in_inconsistent_state'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: > return _wrapped_call(hook_impl.function(*args), self.execute) ..\_pytest\vendored_packages\pluggy.py:595: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ wrap_controller = <generator object pytest_runtest_call at 0x000002c017af9f10> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i...tent_state'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def _wrapped_call(wrap_controller, func): """ Wrap calling to a function with a generator which needs to yield exactly once. The yield point will trigger calling the wrapped function and return its _CallOutcome to the yield point. The generator then needs to finish (raise StopIteration) in order for the wrapped call to complete. """ try: next(wrap_controller) # first yield except StopIteration: _raise_wrapfail(wrap_controller, "did not yield") call_outcome = _CallOutcome(func) try: wrap_controller.send(call_outcome) _raise_wrapfail(wrap_controller, "has second yield") except StopIteration: pass > return call_outcome.get_result() ..\_pytest\vendored_packages\pluggy.py:253: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000002c0186e3120> def get_result(self): if self.excinfo is None: return self.result else: ex = self.excinfo if _py3: raise ex[1].with_traceback(ex[2]) > _reraise(*ex) # noqa ..\_pytest\vendored_packages\pluggy.py:279: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000002c0186e3120> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i...tent_state'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def __init__(self, func): try: > self.result = func() ..\_pytest\vendored_packages\pluggy.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_cannot_copy_decompressor_with_stream_in_inconsistent_state'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: return _wrapped_call(hook_impl.function(*args), self.execute) > res = hook_impl.function(*args) ..\_pytest\vendored_packages\pluggy.py:596: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = <AppTestMethod 'test_cannot_copy_decompressor_with_stream_in_inconsistent_state'> def pytest_runtest_call(item): try: > item.runtest() ..\_pytest\runner.py:91: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <AppTestMethod 'test_cannot_copy_decompressor_with_stream_in_inconsistent_state'> def runtest(self): target = self.obj src = extract_docstring_if_empty_function(target.im_func) space = target.im_self.space if self.config.option.runappdirect: appexec_definitions = self.parent.obj.__dict__ spaceconfig = getattr(self.parent.obj, 'spaceconfig', None) usemodules = spaceconfig.get('usemodules') if spaceconfig else None return run_with_python(self.config.option.python, src, usemodules, > **appexec_definitions) tool\pytest\apptest.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ python_ = 'd:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\pypy\\goal\\pypy3.11-c.exe' target_ = <function test_cannot_copy_decompressor_with_stream_in_inconsistent_state at 0x000002c01ad63a60> usemodules = ['zlib'] definitions = {'LICENSE': '#encoding utf-8\n\nLicense\n=======\n\nExcept when otherwise stated (look for LICENSE files in directorie...compressed', 'intentionally_break_a_z_stream': <pypy.interpreter.gateway.interp2app object at 0x000002c01adb1750>, ...} defs = ["self.LICENSE = b'#encoding utf-8\\n\\nLicense\\n=======\\n\\nExcept when otherwise stated (look for LICENSE files in....expanded = b'some bytes which will be compressed'\n", 'self.runappdirect = True\n', 'import zlib; self.zlib = zlib\n'] symbol = 'zlib', value = <module 'zlib' (built-in)> def run_with_python(python_, target_, usemodules, **definitions): if python_ is None: py.test.skip("Cannot find the default python3 interpreter to run with -A") defs = [] for symbol, value in sorted(definitions.items()): if isinstance(value, tuple) and isinstance(value[0], py.code.Source): code, args = value defs.append(str(code)) arg_repr = [] for arg in args: if isinstance(arg, types.FunctionType): arg_repr.append(arg.__name__) elif isinstance(arg, types.MethodType): arg_repr.append(arg.__name__) else: arg_repr.append(py3k_repr(arg)) args = ', '.join(arg_repr) defs.append("self.%s = anonymous(%s)\n" % (symbol, args)) elif isinstance(value, types.MethodType): # "def w_method(self)" code = py.code.Code(value) defs.append(str(code.source())) defs.append("type(self).%s = %s\n" % (symbol, value.__name__)) elif isinstance(value, types.ModuleType): name = value.__name__ defs.append("import %s; self.%s = %s\n" % (name, symbol, name)) elif isinstance(value, (str, unicode, int, long, float, list, tuple, dict)) or value is None: defs.append("self.%s = %s\n" % (symbol, py3k_repr(value))) check_usemodules = '' if usemodules: usemodules = [_rename_module(name) for name in usemodules] check_usemodules = """\ missing = set(%r).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing""" % usemodules source = list(py.code.Source(target_)) while source[0].startswith(('@py.test.mark.', '@pytest.mark.')): source.pop(0) source = source[1:] pyfile = udir.join('src.py') if isinstance(target_, str): # Special case of a docstring; the function name is the first word. target_name = target_.split('(', 1)[0] else: target_name = target_.__name__ with pyfile.open('w') as f: f.write(helpers % (pypyroot, check_usemodules)) f.write('\n'.join(defs)) f.write('def %s():\n' % target_name) f.write('\n'.join(source)) f.write("\ntry:\n %s()\n" % target_name) f.write('finally:\n print("===aefwuiheawiu===")') helper_dir = os.path.join(pypydir, 'tool', 'cpyext') env = os.environ.copy() env['PYTHONPATH'] = helper_dir res, stdout, stderr = run_subprocess( python_, [str(pyfile)], env=env) print pyfile.read() print "from", str(pyfile) print >> sys.stdout, stdout print >> sys.stderr, stderr if res == 81: py.test.skip('%r was not compiled w/ required usemodules: %r' % (python_, usemodules)) elif res != 0: raise AssertionError( > "Subprocess failed with exit code %s:\n%s" % (res, stderr)) E AssertionError: Subprocess failed with exit code 1: E File "d:\systemtemp\pytest\usession-py3.11-1007\src.py", line 84 E def test_cannot_copy_decompressor_with_stream_in_inconsistent_state(self): E ^^^ E IndentationError: expected an indented block after function definition on line 83 tool\pytest\apptest.py:239: AssertionError ---------------------------- Captured stdout call ----------------------------- # -*- encoding: utf-8 -*- if 1: import sys sys.path.append('d:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build') missing = set(['zlib']).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing def skip(message): print(message) raise SystemExit(0) __builtins__.skip = skip __builtins__.py3k_skip = skip class ExceptionWrapper: pass def raises(exc, *args, **kwargs): if not args: return RaisesContext(exc) func = args[0] args = args[1:] import os try: if isinstance(func, str): if func.startswith((' ', os.linesep, '\n')): # it's probably an indented block, so we prefix if True: # to avoid SyntaxError func = "if True:\n" + func frame = sys._getframe(1) exec(func, frame.f_globals, frame.f_locals) else: func(*args, **kwargs) except exc as e: res = ExceptionWrapper() res.value = e res.traceback = e.__traceback__ return res else: raise AssertionError("DID NOT RAISE") class RaisesContext(object): def __init__(self, expected_exception): self.expected_exception = expected_exception self.excinfo = None def __enter__(self): return self def __exit__(self, *tp): __tracebackhide__ = True if tp[0] is None: raise AssertionError("DID NOT RAISE") self.value = tp[1] return issubclass(tp[0], self.expected_exception) __builtins__.raises = raises class Test: pass self = Test() self.LICENSE = b'#encoding utf-8\n\nLicense\n=======\n\nExcept when otherwise stated (look for LICENSE files in directories\nor information at the beginning of each file) all software and\ndocumentation in the \'rpython\', \'pypy\', \'ctype_configure\', \'dotviewer\',\n\'demo\', \'extra_tests\', \'include\', \'lib_pypy\', \'py\', and \'_pytest\'\ndirectories is licensed as follows:\n\n The MIT License\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation\n files (the "Software"), to deal in the Software without\n restriction, including without limitation the rights to use,\n copy, modify, merge, publish, distribute, sublicense, and/or\n sell copies of the Software, and to permit persons to whom the\n Software is furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included\n in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\n THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n DEALINGS IN THE SOFTWARE.\n\n\nPyPy Copyright holders 2003\n---------------------------\n\nExcept when otherwise stated (look for LICENSE files or information at\nthe beginning of each file) the files in the \'pypy\' directory are each\ncopyrighted by one or more of the following people and organizations:\n\n Armin Rigo\n Matti Picus\n Carl Friedrich Bolz-Tereick\n Maciej Fija\xc5\x82kowski\n Antonio Cuni\n Amaury Forgeot d\'Arc\n Ronan Lamy\n Samuele Pedroni\n Alex Gaynor\n Richard Plangger\n Brian Kearns\n Philip Jenvey\n Michael Hudson-Doyle\n Manuel Jacob\n David Schneider\n Christian Tismer\n Holger Krekel\n H\xc3\xa5kan Ard\xc3\xb6\n Anders Chrigstrom\n Benjamin Peterson\n Wim Lavrijsen\n Eric van Riet Paap\n Remi Meier\n Richard Emslie\n Sven Hager\n Lukas Diekmann\n Anders Lehmann\n Aurelien Campeas\n Edd Barrett\n Niklaus Haldimann\n Yusuke Izawa\n Seo Sanghyeon\n Laura Creighton\n Leonardo Santagada\n Alexander Schremmer\n David Edelsohn\n Raffael Tfirst\n Stefano Rivera\n Lawrence Oluyede\n Gregor Wegberg\n Jakub Gustak\n Romain Guillebert\n Batuhan Taskaya\n Guido Wesdorp\n Ronny Pfannschmidt\n Nico Rittinghaus\n Alexander Hesse\n Justin Peel\n Niko Matsakis\n Toon Verwaest\n Ludovic Aubry\n stian\n Alex Martelli\n Adrien Di Mascio\n Anders Hammarquist\n Oskar Haarklou Veileborg\n Ondrej Baranovi\xc4\x8d\n Logan Chien\n Mark Young\n Dan Villiom Podlaski Christiansen\n muke101\n Vincent Legoll\n Spenser Bauman\n Stefan Beyer\n Jacob Hallen\n Stephan Diehl\n Stefan Schwarzer\n Valentino Volonghi\n Tomek Meka\n Andrew Lawrence\n Patrick Maupin\n Bob Ippolito\n David Malcolm\n Bruno Gola\n Devin Jeanpierre\n Yannick Jadoul\n Daniel Roberts\n Marius Gedminas\n Squeaky\n Camillo Bruni\n Nicolas Truessel\n Simon Burton\n Maxwell Bernstein\n Bartosz Skowron\n Michael Foord\n Jean-Paul Calderone\n Timo Paulssen\n Alexandre Fayolle\n Martin Matusiak\n Konstantin Lopuhin\n Micha\xc5\x82 G\xc3\xb3rny\n Simon Cross\n Laurence Tratt\n Greg Price\n Jeremy Thurgood\n Mark Pearse\n Ivan Sichmann Freitas\n Adrian Kuhn\n Julian Berman\n olliemath\n Wenzhu Man\n Guido van Rossum\n Stian Andreassen\n Mikael Sch\xc3\xb6nenberg\n Tobias Pape\n Stan Ulbrych\n Tyler Wade\n Paul deGrandis\n Tadeu Zagallo\n quejebo\n Dario Bertini\n tav\n Pawe\xc5\x82 Piotr Przeradowski\n Mike Blume\n Oscar Nierstrasz\n Wanja Saatkamp\n Gerald Klix\n Taavi Burns\n Tobias Oberstein\n Stefan H. Muller\n Jan de Mooij\n Christoph Jung\n Dodan Mihai\n Rami Chowdhury\n Colin Valliant\n Eugene Oden\n marky1991\n Vasily Kuznetsov\n Boris Feigin\n David Ripton\n Ilya Osadchiy\n Lukas Renggli\n Joannah Nanjekye\n Tim Felgentreff\n Guenter Jantzen\n Georg Brandl\n Andrew Chambers\n Preston Timmons\n Jeff Terrace\n Ben Young\n Nicolas Chauvat\n Vanessa Freudenberg\n Yusuke Tsutsumi\n Dusty Phillips\n Jasper Schulz\n Jason Chu\n Michael Twomey\n Rocco Moretti\n da-woods\n Andrews Medina\n Tim Matussek\n Pieter Zieschang\n William Leslie\n anatoly techtonik\n Yichao Yu\n Ned Batchelder\n \xc5\x81ukasz Langa\n Alecsandru Patrascu\n Anton Gulenko\n Wouter van Heyst\n Beatrice During\n Jared Grubb\n Olivier Dormond\n Nils M\xc3\xbcller\n Sergey Matyunin\n Brian Dorsey\n Mariano Anaya\n Daniel Patrick\n Sebastian Pawlu\xc5\x9b\n Christian Hudon\n Gabriel Lavoie\n Michal Bendowski\n Jason Creighton\n Stuart Williams\n Gintautas Miliauskas\n devdanzin\n Matt Jackson\n Berkin Ilbeyi\n Stanislaw Halik\n Michael Cheng\n Lucian Branescu Mihaila\n Justas Sadzevicius\n Oliver Margetts\n Ricky Zhou\n Mihnea Saracin\n Chirag Jadwani\n Elmo M\xc3\xa4ntynen\n Anders Qvist\n Jonathan David Riehl\n Rodrigo Tobar\n Felix C. Stegerman\n cptpcrd\n David C Ellis\n Floris Bruynooghe\n Robert Zaremba\n Reuben Cummings\n Faye Zhao\n Corbin Simpson\n Christopher Pope\n Mike Pavone\n Alan McIntyre\n Thomas Grainger\n Caleb Burns\n Sebastian Berg\n Matt Billenstein\n Anthony Sottile\n Arianna Avanzini\n Tristan Arthur\n touilleMan\n Aaron Gallagher\n Vaibhav Sood\n Attila Gobi\n Marc Abramowitz\n Alexis Daboville\n Andreas St\xc3\xbchrk\n Gasper Zejn\n Jens-Uwe Mager\n Charalampos Stratakis\n Petr Van\xc4\x9bk\n Wenzel Jakob\n Pauli Virtanen\n Tomasz Dziopa\n Barry Hart\n Thomas Hisch\n Mark Williams\n Florin Papa\n Kunal Grover\n Omer Katz\n Jakub Stasiak\n Valentina Mukhamedzhanova\n Lukas Vacek\n Karl Ramm\n Nathan Taylor\n Gabriel\n Aaron Iles\n Jacek Generowicz\n Dennis Sweeney\n Samuel Ytterbrink\n Pierre Augier\n Ilya Egorov\n Paul Gey\n Alessandro Ogier\n Chris Burr\n nimaje\n Bernd Schoeller\n Miro Hron\xc4\x8dok\n Catalin Fierut\n Catalin Gabriel Manciu\n Philipp Rustemeuer\n David Lievens\n Ian Foote\n Arjun Naik\n Ryan Gonzalez\n Sergey Kishchenko\n Dan Buch\n Neil Blakey-Milner\n Alex Perry\n Miguel de Val Borro\n Artur Lisiecki\n Michael Schneider\n Lene Wagner\n Jacob Oscarson\n Ignas Mikalajunas\n Lutz Paelike\n Victorien\n Jeongseop Lim\n Julian Waters\n Sam James\n Christian Clauss\n Benjamin Moody\n Renaud Blanch\n h-vertini\n Alex Orange\n alexprengere\n Georges Racinet\n Lin Cheng\n Bystroushaak\n Ram Rachum\n Vincent Michel\n Michal Kuffa\n Ryan Hileman\n Sreepathi Pai\n Paul Ganssle\n Carl Bordum Hansen\n ashwinahuja\n Radu Ciorba\n Andrew Stepanov\n afteryu\n Nate Bragg\n Fabio Niephaus\n Vasantha Ganesh K\n florinpapa\n Amber Brown\n Matt Bogosian\n Kim Jin Su\n Richard Lancaster\n Markus Holtermann\n Ruochen Huang\n Jeong YunWon\n Lucas Stadler\n Toni Mattis\n Jason Michalski\n Yury V. Zaytsev\n Laurens Van Houtven\n Juan Francisco Cantero Hurtado\n Anna Katrina Dominguez\n Yasir Suhail\n Christoph Gerum\n Bobby Impollonia\n Dan Colish\n Akira Li\n Toby Watson\n Godefroid Chappelle\n Stephan Busemann\n Christopher Armstrong\n Yusei Tahara\n Joshua Gilbert\n Andrew Thompson\n Jeong, YunWon\n Alex Willmer\n Ariel Volovik\n Martin Teichmann\n diath\n robinverduijn\n obafgkmdh\n Karl Otness\n Blackasthesky\n Isuru Fernando\n h-vetinari\n David Hewitt\n Ian Clester\n Michael Cho\n Kevin Lee\n Christoph Reiter\n Chris AtLee\n shaolo1\n Tomas Hrnciar\n Bolutife Ogunsola\n mark doerr\n kotus9\n Ihar Shabes\n Sam Edwards\n Jesdi\n Ivan\n Yasen Kiprov\n Zsolt Cserna\n DeVerne Jones\n whitequark\n Alex Kashirin\n Joannah Nanjekye nanjekyejoannah@gmail.com\n Paul Graydon\n Herv\xc3\xa9 Beraud\n John Aldis\n Evgenii Gorinov\n Antoine Dupre\n Johan Forsberg\n Filip Salomonsson\n Steve Papanik\n Caleb Hattingh\n Min RK\n Petre Vijiac\n Iraklis D.\n Stanis\xc5\x82aw Halik\n Graham Markall\n PavloKapyshin\n Tom\xc3\xa1\xc5\xa1 Pru\xc5\xbeina\n Daniil Yarancev\n pizi\n Eli Stevens\n Diana Popa\n JohnDoe\n werat\n Nikolay Zinov\n Aaron Tubbs\n Jonas Pfannschmidt\n Jason Madden\n Tobias Diaz\n Zearin\n Yaroslav Fedevych\n Niclas Olofsson\n Andrey Churin\n Volodymyr Vladymyrov\n Donald Stufft\n Nikolaos-Digenis Karagiannis\n Roman Podoliaka\n Henri Tuhola\n Berker Peksag\n halgari\n Chris Pressey\n Ben Mather\n Mike Kaplinskiy\n Dan Sanders\n Dan Crosta\n Mads Kiilerich\n Boglarka Vezer\n Stefan Marr\n Asmo Soinio\n Kurt Griffiths\n Matthew Miller\n aliceinwire\n jiaaro\n OlivierBlanvillain\n Rafa\xc5\x82 Ga\xc5\x82czy\xc5\x84ski\n Mike Bayer\n Ben Darnell\n Markus Unterwaditzer\n Flavio Percoco\n Tomer Chachamu\n Carl Meyer\n Lars Wassermann\n shoma hosaka\n Julien Phalip\n Kristoffer Kleine\n yrttyr\n James Lan\n Antony Lee\n Even Wiik Thomassen\n soareschen\n Buck Golemon\n Christopher Groskopf\n Tomo Cocoa\n Dan Loewenherz\n Chris Lambacher\n Brett Cannon\n Christian Muirhead\n Armin Ronacher\n Rodrigo Ara\xc3\xbajo\n Konrad Delong\n Daniel Neuh\xc3\xa4user\n Victor Stinner\n Anders Sigfridsson\n Martin Blais\n Michael Chermside\n Dinu Gherman\n Anna Ravencroft\n\n Heinrich-Heine University, Germany\n Open End AB (formerly AB Strakt), Sweden\n merlinux GmbH, Germany\n tismerysoft GmbH, Germany\n Logilab Paris, France\n DFKI GmbH, Germany\n Impara, Germany\n Change Maker, Sweden\n University of California Berkeley, USA\n Google Inc.\n King\'s College London\n\nThe PyPy Logo as used by http://speed.pypy.org and others was created\nby Samuel Reis and is distributed on terms of Creative Commons Share Alike\nLicense.\n\nLicense for \'lib-python/2.7, lib-python/3\'\n==========================================\n\nExcept when otherwise stated (look for LICENSE files or copyright/license\ninformation at the beginning of each file) the files in the \'lib-python\'\ndirectory are all copyrighted by the Python Software Foundation and licensed\nunder the terms that you can find here: https://docs.python.org/3/license.html\n\nLicense for \'pypy/module/unicodedata/\'\n======================================\n\nThe following files are from the website of The Unicode Consortium\nat http://www.unicode.org/. For the terms of use of these files, see\nhttp://www.unicode.org/terms_of_use.html . Or they are derived from\nfiles from the above website, and the same terms of use apply.\n\n CompositionExclusions-*.txt\n EastAsianWidth-*.txt\n LineBreak-*.txt\n UnicodeData-*.txt\n UnihanNumeric-*.txt\n\nLicense for \'dotviewer/font/\'\n=============================\n\nCopyright (C) 2008 The Android Open Source Project\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an "AS IS" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\nDetailed license information is contained in the NOTICE file in the\ndirectory.\n\n\nLicenses and Acknowledgements for Incorporated Software\n=======================================================\n\nThis section is an incomplete, but growing list of licenses and\nacknowledgements for third-party software incorporated in the PyPy\ndistribution.\n\nLicense for \'Tcl/Tk\'\n--------------------\n\nThis copy of PyPy contains library code that may, when used, result in\nthe Tcl/Tk library to be loaded. PyPy also includes code that may be\nregarded as being a copy of some parts of the Tcl/Tk header files.\nYou may see a copy of the License for Tcl/Tk in the file\n`lib_pypy/_tkinter/license.terms` included here.\n\nLicense for \'bzip2\'\n-------------------\n\nThis copy of PyPy may be linked (dynamically or statically) with the\nbzip2 library. You may see a copy of the License for bzip2/libbzip2 at\n\n http://www.bzip.org/1.0.5/bzip2-manual-1.0.5.html\n\nLicense for \'openssl\'\n---------------------\n\nThis copy of PyPy may be linked (dynamically or statically) with the\nopenssl library. You may see a copy of the License for OpenSSL at\n\n https://www.openssl.org/source/license.html\n\nLicense for \'_gdbm\'\n------------------\n\nThe _gdbm module includes code from gdbm.h, which is distributed under\nthe terms of the GPL license version 2 or any later version. Thus the\n_gdbm module, provided in the file lib_pypy/_gdbm.py, is redistributed\nunder the terms of the GPL license as well.\n\nLicense for \'rpython/rlib/rvmprof/src\'\n--------------------------------------\n\nThe code is based on gperftools. You may see a copy of the License for it at\n\n https://github.com/gperftools/gperftools/blob/master/COPYING\n\nLicense for \'liblzma and \'lzmaffi\'\n----------------------------------\n\nThis copy of PyPy may be linked (dynamically or statically) with the\nliblzma library, which was put in the "public domain":\n\n http://tukaani.org/xz/\n\nThe cffi bindings to liblzma (in lib_pypy/_lzma.py) are derived from\nthe lzmaffi project which is distributed under a BSD license:\n\n https://pypi.python.org/pypi/lzmaffi/0.3.0\n\nLicense for \'libexpat\'\n----------------------\n\nThe pyexpat module includes code from libexpat which is distributed under an MIT license:\n\n https://github.com/libexpat/libexpat/blob/R_2_7_4/COPYING\n' self.compressed = b'x\x9c+\xce\xcfMUH\xaa,I-V(\xcf\xc8L\xceP(\xcf\xcc\xc9QHJUH\xce\xcf-(J-.NM\x01\x00\xed\x18\rC' self.expanded = b'some bytes which will be compressed' self.runappdirect = True import zlib; self.zlib = zlib def test_cannot_copy_decompressor_with_stream_in_inconsistent_state(): def test_cannot_copy_decompressor_with_stream_in_inconsistent_state(self): if self.runappdirect: skip("can't run with -A") decompressor = self.zlib.decompressobj() self.intentionally_break_a_z_stream(zobj=decompressor) raises(self.zlib.error, decompressor.copy) try: test_cannot_copy_decompressor_with_stream_in_inconsistent_state() finally: print("===aefwuiheawiu===") from d:\systemtemp\pytest\usession-py3.11-1007\src.py ---------------------------- Captured stderr call ----------------------------- File "d:\systemtemp\pytest\usession-py3.11-1007\src.py", line 84 def test_cannot_copy_decompressor_with_stream_in_inconsistent_state(self): ^^^ IndentationError: expected an indented block after function definition on line 83 __ AppTestZlib.test_cannot_copy_compressor_with_stream_in_inconsistent_state __ self = <CallInfo when='call' exception: Subprocess failed with exit code 1: File "d:\systemtemp\pytest\usession-py3.11-1007...nconsistent_state(self): ^^^ IndentationError: expected an indented block after function definition on line 83 > func = <function <lambda> at 0x000002c01aae49f8>, when = 'call' def __init__(self, func, when): #: context of invocation: one of "setup", "call", #: "teardown", "memocollect" self.when = when self.start = time() try: > self.result = func() ..\_pytest\runner.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > return CallInfo(lambda: ihook(item=item, **kwds), when=when) ..\_pytest\runner.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_HookCaller 'pytest_runtest_call'> kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_cannot_copy_compressor_with_str...lts, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_cannot_copy_compressor_with_stream_in_inconsistent_state'>} def __call__(self, **kwargs): assert not self.is_historic() > return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) ..\_pytest\vendored_packages\pluggy.py:724: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.config.PytestPluginManager object at 0x000002c016ffe8a8> hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_cannot_copy_compressor_with_str...lts, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_cannot_copy_compressor_with_stream_in_inconsistent_state'>} def _hookexec(self, hook, methods, kwargs): # called from all hookcaller instances. # enable_tracing will set its own wrapping function at self._inner_hookexec > return self._inner_hookexec(hook, methods, kwargs) ..\_pytest\vendored_packages\pluggy.py:338: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hook = <_HookCaller 'pytest_runtest_call'>, methods = [] kwargs = {'__multicall__': <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_cannot_copy_compressor_with_str...lts, 0 meths, kwargs={...}>}>, 'item': <AppTestMethod 'test_cannot_copy_compressor_with_stream_in_inconsistent_state'>} self._inner_hookexec = lambda hook, methods, kwargs: \ > _MultiCall(methods, kwargs, hook.spec_opts).execute() ..\_pytest\vendored_packages\pluggy.py:333: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_cannot_copy_compressor_with_stream_in_inconsistent_state'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: > return _wrapped_call(hook_impl.function(*args), self.execute) ..\_pytest\vendored_packages\pluggy.py:595: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ wrap_controller = <generator object pytest_runtest_call at 0x000002c01b2701b0> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i...tent_state'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def _wrapped_call(wrap_controller, func): """ Wrap calling to a function with a generator which needs to yield exactly once. The yield point will trigger calling the wrapped function and return its _CallOutcome to the yield point. The generator then needs to finish (raise StopIteration) in order for the wrapped call to complete. """ try: next(wrap_controller) # first yield except StopIteration: _raise_wrapfail(wrap_controller, "did not yield") call_outcome = _CallOutcome(func) try: wrap_controller.send(call_outcome) _raise_wrapfail(wrap_controller, "has second yield") except StopIteration: pass > return call_outcome.get_result() ..\_pytest\vendored_packages\pluggy.py:253: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000002c01b25c020> def get_result(self): if self.excinfo is None: return self.result else: ex = self.excinfo if _py3: raise ex[1].with_traceback(ex[2]) > _reraise(*ex) # noqa ..\_pytest\vendored_packages\pluggy.py:279: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.vendored_packages.pluggy._CallOutcome instance at 0x000002c01b25c020> func = <bound method _MultiCall.execute of <_MultiCall 0 results, 0 meths, kwargs={'i...tent_state'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}>> def __init__(self, func): try: > self.result = func() ..\_pytest\vendored_packages\pluggy.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_MultiCall 0 results, 0 meths, kwargs={'item': <AppTestMethod 'test_cannot_copy_compressor_with_stream_in_inconsistent_state'>, '__multicall__': <_MultiCall 0 results, 0 meths, kwargs={...}>}> def execute(self): all_kwargs = self.kwargs self.results = results = [] firstresult = self.specopts.get("firstresult") while self.hook_impls: hook_impl = self.hook_impls.pop() args = [all_kwargs[argname] for argname in hook_impl.argnames] if hook_impl.hookwrapper: return _wrapped_call(hook_impl.function(*args), self.execute) > res = hook_impl.function(*args) ..\_pytest\vendored_packages\pluggy.py:596: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ item = <AppTestMethod 'test_cannot_copy_compressor_with_stream_in_inconsistent_state'> def pytest_runtest_call(item): try: > item.runtest() ..\_pytest\runner.py:91: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <AppTestMethod 'test_cannot_copy_compressor_with_stream_in_inconsistent_state'> def runtest(self): target = self.obj src = extract_docstring_if_empty_function(target.im_func) space = target.im_self.space if self.config.option.runappdirect: appexec_definitions = self.parent.obj.__dict__ spaceconfig = getattr(self.parent.obj, 'spaceconfig', None) usemodules = spaceconfig.get('usemodules') if spaceconfig else None return run_with_python(self.config.option.python, src, usemodules, > **appexec_definitions) tool\pytest\apptest.py:327: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ python_ = 'd:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\pypy\\goal\\pypy3.11-c.exe' target_ = <function test_cannot_copy_compressor_with_stream_in_inconsistent_state at 0x000002c01ad63bc8> usemodules = ['zlib'] definitions = {'LICENSE': '#encoding utf-8\n\nLicense\n=======\n\nExcept when otherwise stated (look for LICENSE files in directorie...compressed', 'intentionally_break_a_z_stream': <pypy.interpreter.gateway.interp2app object at 0x000002c01adb1750>, ...} defs = ["self.LICENSE = b'#encoding utf-8\\n\\nLicense\\n=======\\n\\nExcept when otherwise stated (look for LICENSE files in....expanded = b'some bytes which will be compressed'\n", 'self.runappdirect = True\n', 'import zlib; self.zlib = zlib\n'] symbol = 'zlib', value = <module 'zlib' (built-in)> def run_with_python(python_, target_, usemodules, **definitions): if python_ is None: py.test.skip("Cannot find the default python3 interpreter to run with -A") defs = [] for symbol, value in sorted(definitions.items()): if isinstance(value, tuple) and isinstance(value[0], py.code.Source): code, args = value defs.append(str(code)) arg_repr = [] for arg in args: if isinstance(arg, types.FunctionType): arg_repr.append(arg.__name__) elif isinstance(arg, types.MethodType): arg_repr.append(arg.__name__) else: arg_repr.append(py3k_repr(arg)) args = ', '.join(arg_repr) defs.append("self.%s = anonymous(%s)\n" % (symbol, args)) elif isinstance(value, types.MethodType): # "def w_method(self)" code = py.code.Code(value) defs.append(str(code.source())) defs.append("type(self).%s = %s\n" % (symbol, value.__name__)) elif isinstance(value, types.ModuleType): name = value.__name__ defs.append("import %s; self.%s = %s\n" % (name, symbol, name)) elif isinstance(value, (str, unicode, int, long, float, list, tuple, dict)) or value is None: defs.append("self.%s = %s\n" % (symbol, py3k_repr(value))) check_usemodules = '' if usemodules: usemodules = [_rename_module(name) for name in usemodules] check_usemodules = """\ missing = set(%r).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing""" % usemodules source = list(py.code.Source(target_)) while source[0].startswith(('@py.test.mark.', '@pytest.mark.')): source.pop(0) source = source[1:] pyfile = udir.join('src.py') if isinstance(target_, str): # Special case of a docstring; the function name is the first word. target_name = target_.split('(', 1)[0] else: target_name = target_.__name__ with pyfile.open('w') as f: f.write(helpers % (pypyroot, check_usemodules)) f.write('\n'.join(defs)) f.write('def %s():\n' % target_name) f.write('\n'.join(source)) f.write("\ntry:\n %s()\n" % target_name) f.write('finally:\n print("===aefwuiheawiu===")') helper_dir = os.path.join(pypydir, 'tool', 'cpyext') env = os.environ.copy() env['PYTHONPATH'] = helper_dir res, stdout, stderr = run_subprocess( python_, [str(pyfile)], env=env) print pyfile.read() print "from", str(pyfile) print >> sys.stdout, stdout print >> sys.stderr, stderr if res == 81: py.test.skip('%r was not compiled w/ required usemodules: %r' % (python_, usemodules)) elif res != 0: raise AssertionError( > "Subprocess failed with exit code %s:\n%s" % (res, stderr)) E AssertionError: Subprocess failed with exit code 1: E File "d:\systemtemp\pytest\usession-py3.11-1007\src.py", line 84 E def test_cannot_copy_compressor_with_stream_in_inconsistent_state(self): E ^^^ E IndentationError: expected an indented block after function definition on line 83 tool\pytest\apptest.py:239: AssertionError ---------------------------- Captured stdout call ----------------------------- # -*- encoding: utf-8 -*- if 1: import sys sys.path.append('d:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build') missing = set(['zlib']).difference(sys.builtin_module_names) if missing: if not hasattr(sys, 'pypy_version_info'): # They may be extension modules on CPython name = None for name in missing.copy(): if name in ['cpyext', '_cffi_backend', '_rawffi']: missing.remove(name) continue try: __import__(name) except ImportError: pass else: missing.remove(name) del name if missing: sys.exit(81) del missing def skip(message): print(message) raise SystemExit(0) __builtins__.skip = skip __builtins__.py3k_skip = skip class ExceptionWrapper: pass def raises(exc, *args, **kwargs): if not args: return RaisesContext(exc) func = args[0] args = args[1:] import os try: if isinstance(func, str): if func.startswith((' ', os.linesep, '\n')): # it's probably an indented block, so we prefix if True: # to avoid SyntaxError func = "if True:\n" + func frame = sys._getframe(1) exec(func, frame.f_globals, frame.f_locals) else: func(*args, **kwargs) except exc as e: res = ExceptionWrapper() res.value = e res.traceback = e.__traceback__ return res else: raise AssertionError("DID NOT RAISE") class RaisesContext(object): def __init__(self, expected_exception): self.expected_exception = expected_exception self.excinfo = None def __enter__(self): return self def __exit__(self, *tp): __tracebackhide__ = True if tp[0] is None: raise AssertionError("DID NOT RAISE") self.value = tp[1] return issubclass(tp[0], self.expected_exception) __builtins__.raises = raises class Test: pass self = Test() self.LICENSE = b'#encoding utf-8\n\nLicense\n=======\n\nExcept when otherwise stated (look for LICENSE files in directories\nor information at the beginning of each file) all software and\ndocumentation in the \'rpython\', \'pypy\', \'ctype_configure\', \'dotviewer\',\n\'demo\', \'extra_tests\', \'include\', \'lib_pypy\', \'py\', and \'_pytest\'\ndirectories is licensed as follows:\n\n The MIT License\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation\n files (the "Software"), to deal in the Software without\n restriction, including without limitation the rights to use,\n copy, modify, merge, publish, distribute, sublicense, and/or\n sell copies of the Software, and to permit persons to whom the\n Software is furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included\n in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\n THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n DEALINGS IN THE SOFTWARE.\n\n\nPyPy Copyright holders 2003\n---------------------------\n\nExcept when otherwise stated (look for LICENSE files or information at\nthe beginning of each file) the files in the \'pypy\' directory are each\ncopyrighted by one or more of the following people and organizations:\n\n Armin Rigo\n Matti Picus\n Carl Friedrich Bolz-Tereick\n Maciej Fija\xc5\x82kowski\n Antonio Cuni\n Amaury Forgeot d\'Arc\n Ronan Lamy\n Samuele Pedroni\n Alex Gaynor\n Richard Plangger\n Brian Kearns\n Philip Jenvey\n Michael Hudson-Doyle\n Manuel Jacob\n David Schneider\n Christian Tismer\n Holger Krekel\n H\xc3\xa5kan Ard\xc3\xb6\n Anders Chrigstrom\n Benjamin Peterson\n Wim Lavrijsen\n Eric van Riet Paap\n Remi Meier\n Richard Emslie\n Sven Hager\n Lukas Diekmann\n Anders Lehmann\n Aurelien Campeas\n Edd Barrett\n Niklaus Haldimann\n Yusuke Izawa\n Seo Sanghyeon\n Laura Creighton\n Leonardo Santagada\n Alexander Schremmer\n David Edelsohn\n Raffael Tfirst\n Stefano Rivera\n Lawrence Oluyede\n Gregor Wegberg\n Jakub Gustak\n Romain Guillebert\n Batuhan Taskaya\n Guido Wesdorp\n Ronny Pfannschmidt\n Nico Rittinghaus\n Alexander Hesse\n Justin Peel\n Niko Matsakis\n Toon Verwaest\n Ludovic Aubry\n stian\n Alex Martelli\n Adrien Di Mascio\n Anders Hammarquist\n Oskar Haarklou Veileborg\n Ondrej Baranovi\xc4\x8d\n Logan Chien\n Mark Young\n Dan Villiom Podlaski Christiansen\n muke101\n Vincent Legoll\n Spenser Bauman\n Stefan Beyer\n Jacob Hallen\n Stephan Diehl\n Stefan Schwarzer\n Valentino Volonghi\n Tomek Meka\n Andrew Lawrence\n Patrick Maupin\n Bob Ippolito\n David Malcolm\n Bruno Gola\n Devin Jeanpierre\n Yannick Jadoul\n Daniel Roberts\n Marius Gedminas\n Squeaky\n Camillo Bruni\n Nicolas Truessel\n Simon Burton\n Maxwell Bernstein\n Bartosz Skowron\n Michael Foord\n Jean-Paul Calderone\n Timo Paulssen\n Alexandre Fayolle\n Martin Matusiak\n Konstantin Lopuhin\n Micha\xc5\x82 G\xc3\xb3rny\n Simon Cross\n Laurence Tratt\n Greg Price\n Jeremy Thurgood\n Mark Pearse\n Ivan Sichmann Freitas\n Adrian Kuhn\n Julian Berman\n olliemath\n Wenzhu Man\n Guido van Rossum\n Stian Andreassen\n Mikael Sch\xc3\xb6nenberg\n Tobias Pape\n Stan Ulbrych\n Tyler Wade\n Paul deGrandis\n Tadeu Zagallo\n quejebo\n Dario Bertini\n tav\n Pawe\xc5\x82 Piotr Przeradowski\n Mike Blume\n Oscar Nierstrasz\n Wanja Saatkamp\n Gerald Klix\n Taavi Burns\n Tobias Oberstein\n Stefan H. Muller\n Jan de Mooij\n Christoph Jung\n Dodan Mihai\n Rami Chowdhury\n Colin Valliant\n Eugene Oden\n marky1991\n Vasily Kuznetsov\n Boris Feigin\n David Ripton\n Ilya Osadchiy\n Lukas Renggli\n Joannah Nanjekye\n Tim Felgentreff\n Guenter Jantzen\n Georg Brandl\n Andrew Chambers\n Preston Timmons\n Jeff Terrace\n Ben Young\n Nicolas Chauvat\n Vanessa Freudenberg\n Yusuke Tsutsumi\n Dusty Phillips\n Jasper Schulz\n Jason Chu\n Michael Twomey\n Rocco Moretti\n da-woods\n Andrews Medina\n Tim Matussek\n Pieter Zieschang\n William Leslie\n anatoly techtonik\n Yichao Yu\n Ned Batchelder\n \xc5\x81ukasz Langa\n Alecsandru Patrascu\n Anton Gulenko\n Wouter van Heyst\n Beatrice During\n Jared Grubb\n Olivier Dormond\n Nils M\xc3\xbcller\n Sergey Matyunin\n Brian Dorsey\n Mariano Anaya\n Daniel Patrick\n Sebastian Pawlu\xc5\x9b\n Christian Hudon\n Gabriel Lavoie\n Michal Bendowski\n Jason Creighton\n Stuart Williams\n Gintautas Miliauskas\n devdanzin\n Matt Jackson\n Berkin Ilbeyi\n Stanislaw Halik\n Michael Cheng\n Lucian Branescu Mihaila\n Justas Sadzevicius\n Oliver Margetts\n Ricky Zhou\n Mihnea Saracin\n Chirag Jadwani\n Elmo M\xc3\xa4ntynen\n Anders Qvist\n Jonathan David Riehl\n Rodrigo Tobar\n Felix C. Stegerman\n cptpcrd\n David C Ellis\n Floris Bruynooghe\n Robert Zaremba\n Reuben Cummings\n Faye Zhao\n Corbin Simpson\n Christopher Pope\n Mike Pavone\n Alan McIntyre\n Thomas Grainger\n Caleb Burns\n Sebastian Berg\n Matt Billenstein\n Anthony Sottile\n Arianna Avanzini\n Tristan Arthur\n touilleMan\n Aaron Gallagher\n Vaibhav Sood\n Attila Gobi\n Marc Abramowitz\n Alexis Daboville\n Andreas St\xc3\xbchrk\n Gasper Zejn\n Jens-Uwe Mager\n Charalampos Stratakis\n Petr Van\xc4\x9bk\n Wenzel Jakob\n Pauli Virtanen\n Tomasz Dziopa\n Barry Hart\n Thomas Hisch\n Mark Williams\n Florin Papa\n Kunal Grover\n Omer Katz\n Jakub Stasiak\n Valentina Mukhamedzhanova\n Lukas Vacek\n Karl Ramm\n Nathan Taylor\n Gabriel\n Aaron Iles\n Jacek Generowicz\n Dennis Sweeney\n Samuel Ytterbrink\n Pierre Augier\n Ilya Egorov\n Paul Gey\n Alessandro Ogier\n Chris Burr\n nimaje\n Bernd Schoeller\n Miro Hron\xc4\x8dok\n Catalin Fierut\n Catalin Gabriel Manciu\n Philipp Rustemeuer\n David Lievens\n Ian Foote\n Arjun Naik\n Ryan Gonzalez\n Sergey Kishchenko\n Dan Buch\n Neil Blakey-Milner\n Alex Perry\n Miguel de Val Borro\n Artur Lisiecki\n Michael Schneider\n Lene Wagner\n Jacob Oscarson\n Ignas Mikalajunas\n Lutz Paelike\n Victorien\n Jeongseop Lim\n Julian Waters\n Sam James\n Christian Clauss\n Benjamin Moody\n Renaud Blanch\n h-vertini\n Alex Orange\n alexprengere\n Georges Racinet\n Lin Cheng\n Bystroushaak\n Ram Rachum\n Vincent Michel\n Michal Kuffa\n Ryan Hileman\n Sreepathi Pai\n Paul Ganssle\n Carl Bordum Hansen\n ashwinahuja\n Radu Ciorba\n Andrew Stepanov\n afteryu\n Nate Bragg\n Fabio Niephaus\n Vasantha Ganesh K\n florinpapa\n Amber Brown\n Matt Bogosian\n Kim Jin Su\n Richard Lancaster\n Markus Holtermann\n Ruochen Huang\n Jeong YunWon\n Lucas Stadler\n Toni Mattis\n Jason Michalski\n Yury V. Zaytsev\n Laurens Van Houtven\n Juan Francisco Cantero Hurtado\n Anna Katrina Dominguez\n Yasir Suhail\n Christoph Gerum\n Bobby Impollonia\n Dan Colish\n Akira Li\n Toby Watson\n Godefroid Chappelle\n Stephan Busemann\n Christopher Armstrong\n Yusei Tahara\n Joshua Gilbert\n Andrew Thompson\n Jeong, YunWon\n Alex Willmer\n Ariel Volovik\n Martin Teichmann\n diath\n robinverduijn\n obafgkmdh\n Karl Otness\n Blackasthesky\n Isuru Fernando\n h-vetinari\n David Hewitt\n Ian Clester\n Michael Cho\n Kevin Lee\n Christoph Reiter\n Chris AtLee\n shaolo1\n Tomas Hrnciar\n Bolutife Ogunsola\n mark doerr\n kotus9\n Ihar Shabes\n Sam Edwards\n Jesdi\n Ivan\n Yasen Kiprov\n Zsolt Cserna\n DeVerne Jones\n whitequark\n Alex Kashirin\n Joannah Nanjekye nanjekyejoannah@gmail.com\n Paul Graydon\n Herv\xc3\xa9 Beraud\n John Aldis\n Evgenii Gorinov\n Antoine Dupre\n Johan Forsberg\n Filip Salomonsson\n Steve Papanik\n Caleb Hattingh\n Min RK\n Petre Vijiac\n Iraklis D.\n Stanis\xc5\x82aw Halik\n Graham Markall\n PavloKapyshin\n Tom\xc3\xa1\xc5\xa1 Pru\xc5\xbeina\n Daniil Yarancev\n pizi\n Eli Stevens\n Diana Popa\n JohnDoe\n werat\n Nikolay Zinov\n Aaron Tubbs\n Jonas Pfannschmidt\n Jason Madden\n Tobias Diaz\n Zearin\n Yaroslav Fedevych\n Niclas Olofsson\n Andrey Churin\n Volodymyr Vladymyrov\n Donald Stufft\n Nikolaos-Digenis Karagiannis\n Roman Podoliaka\n Henri Tuhola\n Berker Peksag\n halgari\n Chris Pressey\n Ben Mather\n Mike Kaplinskiy\n Dan Sanders\n Dan Crosta\n Mads Kiilerich\n Boglarka Vezer\n Stefan Marr\n Asmo Soinio\n Kurt Griffiths\n Matthew Miller\n aliceinwire\n jiaaro\n OlivierBlanvillain\n Rafa\xc5\x82 Ga\xc5\x82czy\xc5\x84ski\n Mike Bayer\n Ben Darnell\n Markus Unterwaditzer\n Flavio Percoco\n Tomer Chachamu\n Carl Meyer\n Lars Wassermann\n shoma hosaka\n Julien Phalip\n Kristoffer Kleine\n yrttyr\n James Lan\n Antony Lee\n Even Wiik Thomassen\n soareschen\n Buck Golemon\n Christopher Groskopf\n Tomo Cocoa\n Dan Loewenherz\n Chris Lambacher\n Brett Cannon\n Christian Muirhead\n Armin Ronacher\n Rodrigo Ara\xc3\xbajo\n Konrad Delong\n Daniel Neuh\xc3\xa4user\n Victor Stinner\n Anders Sigfridsson\n Martin Blais\n Michael Chermside\n Dinu Gherman\n Anna Ravencroft\n\n Heinrich-Heine University, Germany\n Open End AB (formerly AB Strakt), Sweden\n merlinux GmbH, Germany\n tismerysoft GmbH, Germany\n Logilab Paris, France\n DFKI GmbH, Germany\n Impara, Germany\n Change Maker, Sweden\n University of California Berkeley, USA\n Google Inc.\n King\'s College London\n\nThe PyPy Logo as used by http://speed.pypy.org and others was created\nby Samuel Reis and is distributed on terms of Creative Commons Share Alike\nLicense.\n\nLicense for \'lib-python/2.7, lib-python/3\'\n==========================================\n\nExcept when otherwise stated (look for LICENSE files or copyright/license\ninformation at the beginning of each file) the files in the \'lib-python\'\ndirectory are all copyrighted by the Python Software Foundation and licensed\nunder the terms that you can find here: https://docs.python.org/3/license.html\n\nLicense for \'pypy/module/unicodedata/\'\n======================================\n\nThe following files are from the website of The Unicode Consortium\nat http://www.unicode.org/. For the terms of use of these files, see\nhttp://www.unicode.org/terms_of_use.html . Or they are derived from\nfiles from the above website, and the same terms of use apply.\n\n CompositionExclusions-*.txt\n EastAsianWidth-*.txt\n LineBreak-*.txt\n UnicodeData-*.txt\n UnihanNumeric-*.txt\n\nLicense for \'dotviewer/font/\'\n=============================\n\nCopyright (C) 2008 The Android Open Source Project\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an "AS IS" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\nDetailed license information is contained in the NOTICE file in the\ndirectory.\n\n\nLicenses and Acknowledgements for Incorporated Software\n=======================================================\n\nThis section is an incomplete, but growing list of licenses and\nacknowledgements for third-party software incorporated in the PyPy\ndistribution.\n\nLicense for \'Tcl/Tk\'\n--------------------\n\nThis copy of PyPy contains library code that may, when used, result in\nthe Tcl/Tk library to be loaded. PyPy also includes code that may be\nregarded as being a copy of some parts of the Tcl/Tk header files.\nYou may see a copy of the License for Tcl/Tk in the file\n`lib_pypy/_tkinter/license.terms` included here.\n\nLicense for \'bzip2\'\n-------------------\n\nThis copy of PyPy may be linked (dynamically or statically) with the\nbzip2 library. You may see a copy of the License for bzip2/libbzip2 at\n\n http://www.bzip.org/1.0.5/bzip2-manual-1.0.5.html\n\nLicense for \'openssl\'\n---------------------\n\nThis copy of PyPy may be linked (dynamically or statically) with the\nopenssl library. You may see a copy of the License for OpenSSL at\n\n https://www.openssl.org/source/license.html\n\nLicense for \'_gdbm\'\n------------------\n\nThe _gdbm module includes code from gdbm.h, which is distributed under\nthe terms of the GPL license version 2 or any later version. Thus the\n_gdbm module, provided in the file lib_pypy/_gdbm.py, is redistributed\nunder the terms of the GPL license as well.\n\nLicense for \'rpython/rlib/rvmprof/src\'\n--------------------------------------\n\nThe code is based on gperftools. You may see a copy of the License for it at\n\n https://github.com/gperftools/gperftools/blob/master/COPYING\n\nLicense for \'liblzma and \'lzmaffi\'\n----------------------------------\n\nThis copy of PyPy may be linked (dynamically or statically) with the\nliblzma library, which was put in the "public domain":\n\n http://tukaani.org/xz/\n\nThe cffi bindings to liblzma (in lib_pypy/_lzma.py) are derived from\nthe lzmaffi project which is distributed under a BSD license:\n\n https://pypi.python.org/pypi/lzmaffi/0.3.0\n\nLicense for \'libexpat\'\n----------------------\n\nThe pyexpat module includes code from libexpat which is distributed under an MIT license:\n\n https://github.com/libexpat/libexpat/blob/R_2_7_4/COPYING\n' self.compressed = b'x\x9c+\xce\xcfMUH\xaa,I-V(\xcf\xc8L\xceP(\xcf\xcc\xc9QHJUH\xce\xcf-(J-.NM\x01\x00\xed\x18\rC' self.expanded = b'some bytes which will be compressed' self.runappdirect = True import zlib; self.zlib = zlib def test_cannot_copy_compressor_with_stream_in_inconsistent_state(): def test_cannot_copy_compressor_with_stream_in_inconsistent_state(self): if self.runappdirect: skip("can't run with -A") compressor = self.zlib.compressobj() self.intentionally_break_a_z_stream(zobj=compressor) raises(self.zlib.error, compressor.copy) try: test_cannot_copy_compressor_with_stream_in_inconsistent_state() finally: print("===aefwuiheawiu===") from d:\systemtemp\pytest\usession-py3.11-1007\src.py ---------------------------- Captured stderr call ----------------------------- File "d:\systemtemp\pytest\usession-py3.11-1007\src.py", line 84 def test_cannot_copy_compressor_with_stream_in_inconsistent_state(self): ^^^ IndentationError: expected an indented block after function definition on line 83 =========================== short test summary info =========================== FAIL module\zlib\test\test_zlib.py::AppTestZlib::()::test_cannot_copy_decompressor_with_stream_in_inconsistent_state FAIL module\zlib\test\test_zlib.py::AppTestZlib::()::test_cannot_copy_compressor_with_stream_in_inconsistent_state ===================== 2 failed, 36 passed in 7.41 seconds ===================== program finished with exit code 1 elapsedTime=3157.046000