pypy-venv\Scripts\pypy3.exe -m pytest -D ../build/pypy --junitxml=test-D.log
in dir d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\venv (timeout 1200 secs)
watching logfiles {'pytestLog': 'test-D.log'}
argv: ['pypy-venv\\Scripts\\pypy3.exe', '-m', 'pytest', '-D', '../build/pypy', '--junitxml=test-D.log']
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\venv
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
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
============================= test session starts =============================
platform win32 -- Python 3.12.13[pypy-8.0.0-alpha], pytest-6.2.5, py-1.11.0, pluggy-1.6.0
pytest-6.2.5 from d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\venv\pypy-venv\Lib\site-packages\pytest\__init__.py
rootdir: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build, configfile: pytest.ini
plugins: hypothesis-6.36.2, xdist-3.5.0
collected 2560 items
..\build\pypy\interpreter\astcompiler\test\apptest_compiler.py ......... [ 0%]
........... [ 0%]
..\build\pypy\interpreter\astcompiler\test\apptest_exceptiongroup.py ... [ 0%]
...................... [ 1%]
..\build\pypy\interpreter\astcompiler\test\apptest_fstring.py .......... [ 2%]
..................... [ 2%]
..\build\pypy\interpreter\astcompiler\test\apptest_misc.py ............. [ 3%]
.... [ 3%]
..\build\pypy\interpreter\astcompiler\test\apptest_patma.py ............ [ 4%]
............................. [ 5%]
..\build\pypy\interpreter\astcompiler\test\apptest_walrus_comprehension.py . [ 5%]
..... [ 5%]
..\build\pypy\interpreter\pyparser\test\apptest_parsestring.py ...... [ 5%]
..\build\pypy\interpreter\test\apptest_annotations.py .................. [ 6%]
........ [ 6%]
..\build\pypy\interpreter\test\apptest_annotations_string.py ...... [ 6%]
..\build\pypy\interpreter\test\apptest_buffer.py ....... [ 7%]
..\build\pypy\interpreter\test\apptest_class.py ................ [ 7%]
..\build\pypy\interpreter\test\apptest_compiler.py ..................... [ 8%]
..F..................................................................... [ 11%]
....... [ 11%]
..\build\pypy\interpreter\test\apptest_coroutine.py .................... [ 12%]
...................................... [ 14%]
..\build\pypy\interpreter\test\apptest_descrtypecheck.py .. [ 14%]
..\build\pypy\interpreter\test\apptest_exceptions.py ........s.......... [ 14%]
....... [ 15%]
..\build\pypy\interpreter\test\apptest_exctable_dis.py ......... [ 15%]
..\build\pypy\interpreter\test\apptest_exec.py ......................... [ 16%]
[ 16%]
..\build\pypy\interpreter\test\apptest_extcall.py ..... [ 16%]
..\build\pypy\interpreter\test\apptest_function.py ..................... [ 17%]
................s....................................................... [ 20%]
[ 20%]
..\build\pypy\interpreter\test\apptest_generator.py .................... [ 21%]
............................................... [ 22%]
..\build\pypy\interpreter\test\apptest_nestedscope.py .................. [ 23%]
[ 23%]
..\build\pypy\interpreter\test\apptest_pep695.py ....................... [ 24%]
........ [ 24%]
..\build\pypy\interpreter\test\apptest_pycode.py .................. [ 25%]
..\build\pypy\interpreter\test\apptest_pyframe.py ...................... [ 26%]
.......................................... [ 28%]
..\build\pypy\interpreter\test\apptest_raise.py ........................ [ 28%]
............................... [ 30%]
..\build\pypy\interpreter\test\apptest_settrace_jump.py .F [ 30%]
..\build\pypy\interpreter\test\apptest_syntax.py ....................... [ 31%]
............. [ 31%]
..\build\pypy\interpreter\test\apptest_sys_settrace.py ................. [ 32%]
........................................................................ [ 35%]
...................................................... [ 37%]
..\build\pypy\interpreter\test\apptest_traceback.py ......F. [ 37%]
..\build\pypy\interpreter\test\apptest_unraisable.py .... [ 37%]
..\build\pypy\interpreter\test\apptest_with_leak.py ......... [ 38%]
..\build\pypy\module\__builtin__\test\apptest_compile.py ............... [ 38%]
...... [ 38%]
..\build\pypy\module\__builtin__\test\apptest_descriptor.py ....... [ 39%]
..\build\pypy\module\__builtin__\test\apptest_operator.py ..... [ 39%]
..\build\pypy\module\__builtin__\test\apptest_print.py ... [ 39%]
..\build\pypy\module\__pypy__\test\apptest_picklebuffer.py ........ [ 39%]
..\build\pypy\module\_abc\test\apptest_abc.py ... [ 39%]
..\build\pypy\module\_ast\test\apptest_ast.py ... [ 40%]
..\build\pypy\module\_codecs\test\apptest_codecs.py .. [ 40%]
..\build\pypy\module\_collections\test\apptest_defaultdict.py .......... [ 40%]
.... [ 40%]
..\build\pypy\module\_collections\test\apptest_deque.py ................ [ 41%]
.......................... [ 42%]
..\build\pypy\module\_collections\test\apptest_ordereddict.py .......... [ 42%]
[ 42%]
..\build\pypy\module\_csv\test\apptest_writer.py ...... [ 42%]
..\build\pypy\module\_io\test\apptest_bufferedio.py . [ 42%]
..\build\pypy\module\_io\test\apptest_bytesio.py ................. [ 43%]
..\build\pypy\module\_io\test\apptest_io.py .......................F.... [ 44%]
.F..........F.. [ 45%]
..\build\pypy\module\_io\test\apptest_stringio.py ...................... [ 46%]
..... [ 46%]
..\build\pypy\module\_io\test\apptest_textio.py ........................ [ 47%]
......s.................. [ 48%]
..\build\pypy\module\_multibytecodec\test\apptest_codecs.py ............ [ 48%]
....... [ 48%]
..\build\pypy\module\_multibytecodec\test\apptest_incremental.py ....... [ 49%]
............F [ 49%]
..\build\pypy\module\_multibytecodec\test\apptest_stream.py ..... [ 49%]
..\build\pypy\module\_opcode\test\apptest_opcode.py ..... [ 50%]
..\build\pypy\module\_pickle\test\apptest_optional_frames.py .. [ 50%]
..\build\pypy\module\_pickle\test\apptest_pickle.py .................... [ 51%]
..........................................s................ [ 53%]
..\build\pypy\module\_pickle\test\apptest_pypy_extensions.py ........... [ 53%]
................ [ 54%]
..\build\pypy\module\_pickle_support\test\apptest__pickle_support.py . [ 54%]
..\build\pypy\module\_pypyjson\test\apptest__pypyjson.py .......... [ 54%]
..\build\pypy\module\_rawffi\test\apptest_rawffi.py .. [ 54%]
..\build\pypy\module\_socket\test\apptest_socket.py ..........ss........ [ 55%]
.....s..s.....s...s.ss..s...s....s...sssss [ 57%]
..\build\pypy\module\_sre\test\apptest_sre.py .......................... [ 58%]
........................................................................ [ 61%]
....... [ 61%]
..\build\pypy\module\_warnings\test\apptest_warnings.py ........s.s..... [ 62%]
..... [ 62%]
..\build\pypy\module\_weakref\test\apptest_weakref.py .................. [ 62%]
......................... [ 63%]
..\build\pypy\module\array\test\apptest_array.py ... [ 64%]
..\build\pypy\module\atexit\test\apptest_atexit.py .. [ 64%]
..\build\pypy\module\exceptions\test\apptest_exceptions.py ............. [ 64%]
................................................... [ 66%]
..\build\pypy\module\imp\test\apptest_import.py ........................ [ 67%]
[ 67%]
..\build\pypy\module\itertools\test\apptest_itertools.py .......... [ 67%]
..\build\pypy\module\marshal\test\apptest_marshal.py ................... [ 68%]
............................ [ 69%]
..\build\pypy\module\math\test\apptest_math.py ................ [ 70%]
..\build\pypy\module\posix\test\apptest_posix.py ..... [ 70%]
..\build\pypy\module\pyexpat\test\apptest_pyexpat.py ... [ 70%]
..\build\pypy\module\signal\test\apptest_signal.py s [ 70%]
..\build\pypy\module\struct\test\apptest_struct.py ..................... [ 71%]
..................... [ 72%]
..\build\pypy\module\struct\test\apptest_structbuffer.py .. [ 72%]
..\build\pypy\module\sys\test\apptest_audit.py .......... [ 72%]
..\build\pypy\module\sys\test\apptest_initpath.py . [ 72%]
..\build\pypy\module\sys\test\apptest_monitoring.py ..................FF [ 73%]
......................... [ 74%]
..\build\pypy\module\sys\test\apptest_sys.py . [ 74%]
..\build\pypy\module\time\test\apptest_time.py ....ssss..........ss....s [ 75%]
.s...........s..F [ 76%]
..\build\pypy\module\token\test\apptest_token.py ........ [ 76%]
..\build\pypy\module\zipimport\test\apptest_zipimport.py . [ 76%]
..\build\pypy\objspace\std\test\apptest_boolobject.py .......... [ 77%]
..\build\pypy\objspace\std\test\apptest_bytearrayobject.py ..... [ 77%]
..\build\pypy\objspace\std\test\apptest_callmethod.py .......... [ 77%]
..\build\pypy\objspace\std\test\apptest_complexobject.py ............... [ 78%]
...................... [ 79%]
..\build\pypy\objspace\std\test\apptest_contains.py .. [ 79%]
..\build\pypy\objspace\std\test\apptest_instmethobject.py ..... [ 79%]
..\build\pypy\objspace\std\test\apptest_intobject.py ................... [ 80%]
............................... [ 81%]
..\build\pypy\objspace\std\test\apptest_iterobject.py .................. [ 82%]
... [ 82%]
..\build\pypy\objspace\std\test\apptest_memoryobject.py ................ [ 82%]
..... [ 82%]
..\build\pypy\objspace\std\test\apptest_objectobject.py .. [ 83%]
..\build\pypy\objspace\std\test\apptest_operation.py . [ 83%]
..\build\pypy\objspace\std\test\apptest_sliceobject.py ......... [ 83%]
..\build\pypy\objspace\std\test\apptest_specializedtuple.py ............ [ 83%]
............ [ 84%]
..\build\pypy\objspace\std\test\apptest_stringformat.py ................ [ 85%]
.s......s..................s......................... [ 87%]
..\build\pypy\objspace\std\test\apptest_tuple.py ....................... [ 87%]
. [ 88%]
..\build\pypy\objspace\std\test\apptest_typeobjject.py ................. [ 88%]
........................................................................ [ 91%]
......... [ 91%]
..\build\pypy\objspace\std\test\apptest_unicode.py ..................... [ 92%]
.......s................................................................ [ 95%]
.......................... [ 96%]
..\build\pypy\objspace\std\test\apptest_userobject.py .................. [ 97%]
...... [ 97%]
..\build\pypy\objspace\test\apptest_binop_overriding.py . [ 97%]
..\build\pypy\objspace\test\apptest_descriptor.py ....s.... [ 97%]
..\build\pypy\objspace\test\apptest_descroperation.py ................s. [ 98%]
..................................... [ 99%]
..\build\pypy\tool\pytest\fake_pytest\test\apptest_fake_pytest.py . [100%]
================================== FAILURES ===================================
___________________________ test_dont_share_lambdas ___________________________
def test_dont_share_lambdas():
if not IS_PYPY:
skip("pypy-only optimization")
# the two lambdas's codes aren't shared (CPython does that but it's
# completely pointless: it only applies to identical lambdas that are
# defined on the same line)
code = compile("x = lambda: 0; y = lambda: 0", "<test>", "exec")
consts = code.co_consts
x, y, z = consts
assert isinstance(x, type(code)) and isinstance(y, type(code))
assert x is not y
> assert x == y
E assert <code object <lambda> at 0x000001d052a90df0, file "<test>", line 1> == <code object <lambda> at 0x000001d052a90f00, file "<test>", line 1>
..\build\pypy\interpreter\test\apptest_compiler.py:216: AssertionError
________________ test_jump_over_assignment_warns_unbound_local ________________
def test_jump_over_assignment_warns_unbound_local():
# uses _warnings directly instead of the warnings module, cheaper to
# import when running untranslated
import _warnings
firstline = _jump_over_assignment.__code__.co_firstlineno
def trace(frame, event, arg):
if (event == 'line' and frame.f_code == _jump_over_assignment.__code__
and frame.f_lineno == firstline + 2):
frame.f_lineno = firstline + 3
return trace
saved_filters = _warnings.filters[:]
_warnings.filters.insert(0, ('error', None, RuntimeWarning, None, 0))
_warnings._filters_mutated()
try:
output = []
sys.settrace(trace)
try:
_jump_over_assignment(output)
except RuntimeWarning as e:
msg = str(e)
else:
> raise AssertionError("expected RuntimeWarning")
E AssertionError: expected RuntimeWarning
..\build\pypy\interpreter\test\apptest_settrace_jump.py:127: AssertionError
__________________________ test_colors_in_traceback ___________________________
def test_colors_in_traceback():
import os
def division_by_zero(a, b):
return (
a + b / 0 # abc
)
old_value = os.environ.get('FORCE_COLOR', None)
os.environ['FORCE_COLOR'] = '1'
try:
from _colorize import can_colorize, ANSIColors
> assert can_colorize()
E assert False
E + where False = <function can_colorize at 0x000001d04b161150>()
..\build\pypy\interpreter\test\apptest_traceback.py:177: AssertionError
________________________________ test_telling _________________________________
tempfile = 'D:\\SystemTemp\\pytest-of-matti\\pytest-114\\test_telling0\\tempfile'
def test_telling(tempfile):
with _io.open(tempfile, "w+", encoding="utf8") as f:
p0 = f.tell()
f.write("\xff\n")
p1 = f.tell()
f.write("\xff\n")
p2 = f.tell()
f.seek(0)
assert p0 == 0
> assert p1 == 3
E assert 4 == 3
..\build\pypy\module\_io\test\apptest_io.py:287: AssertionError
____________________________ test_warn_on_dealloc _____________________________
tempfile = 'D:\\SystemTemp\\pytest-of-matti\\pytest-114\\test_warn_on_dealloc0\\tempfile'
def test_warn_on_dealloc(tempfile):
> _check_warn_on_dealloc(tempfile, 'wb', buffering=0)
..\build\pypy\module\_io\test\apptest_io.py:376:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = ('D:\\SystemTemp\\pytest-of-matti\\pytest-114\\test_warn_on_dealloc0\\tempfile', 'wb')
kwargs = {'buffering': 0}, gc = <module 'gc' (built-in)>
warnings = <module 'warnings' from 'D:\\pypy_stuff\\buildbot64\\slave\\pypy-c-jit-win-x86-64\\build\\lib-python\\3\\warnings.py'>
f = None
r = "<_io.FileIO name='D:\\\\SystemTemp\\\\pytest-of-matti\\\\pytest-114\\\\test_warn_on_dealloc0\\\\tempfile' mode='wb' closefd=True>"
w = [<warnings.WarningMessage object at 0x000001d052c0bc90>], @py_assert2 = None
@py_assert5 = '{message : ResourceWarning("unclosed file <_io.FileIO name=\'D:\\\\\\\\SystemTemp\\\\\\\\pytest-of-matti\\\\\\\\pytes...lave\\\\pypy-c-jit-win-x86-64\\\\build\\\\pypy\\\\module\\\\_io\\\\test\\\\apptest_io.py\', lineno : 371, line : None}'
@py_assert4 = None
@py_format7 = '"<_io.FileIO name=\'D:\\\\\\\\SystemTemp\\\\\\\\pytest-of-matti\\\\\\\\pytest-114\\\\\\\\test_warn_on_dealloc0\\\\\\\...\\\\\\apptest_io.py\\\', lineno : 371, line : None}\' = str(<warnings.WarningMessage object at 0x000001d052c0bc90>)\n}'
@py_format9 = 'assert "<_io.FileIO name=\'D:\\\\\\\\SystemTemp\\\\\\\\pytest-of-matti\\\\\\\\pytest-114\\\\\\\\test_warn_on_dealloc0...\\\\\\apptest_io.py\\\', lineno : 371, line : None}\' = str(<warnings.WarningMessage object at 0x000001d052c0bc90>)\n}'
def _check_warn_on_dealloc(*args, **kwargs):
import gc
import warnings
f = open(*args, **kwargs)
r = repr(f)
gc.collect()
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter('always')
f = None
gc.collect()
assert len(w) == 1, len(w)
> assert r in str(w[0])
E assert "<_io.FileIO name='D:\\\\SystemTemp\\\\pytest-of-matti\\\\pytest-114\\\\test_warn_on_dealloc0\\\\tempfile' mode='wb' closefd=True>" in '{message : ResourceWarning("unclosed file <_io.FileIO name=\'D:\\\\\\\\SystemTemp\\\\\\\\pytest-of-matti\\\\\\\\pytes...lave\\\\pypy-c-jit-win-x86-64\\\\build\\\\pypy\\\\module\\\\_io\\\\test\\\\apptest_io.py\', lineno : 371, line : None}'
E + where '{message : ResourceWarning("unclosed file <_io.FileIO name=\'D:\\\\\\\\SystemTemp\\\\\\\\pytest-of-matti\\\\\\\\pytes...lave\\\\pypy-c-jit-win-x86-64\\\\build\\\\pypy\\\\module\\\\_io\\\\test\\\\apptest_io.py\', lineno : 371, line : None}' = str(<warnings.WarningMessage object at 0x000001d052c0bc90>)
..\build\pypy\module\_io\test\apptest_io.py:373: AssertionError
___________________________ test_tell_univnewlines ____________________________
tempfile = 'D:\\SystemTemp\\pytest-of-matti\\pytest-114\\test_tell_univnewlines0\\tempfile'
def test_tell_univnewlines(tempfile):
import io
import sys
NEWLINE = '\r\n'
with io.open(tempfile, "w") as fp:
fp.write(DATA_CRLF)
with io.open(tempfile, "r") as fp:
assert repr(fp.newlines) == repr(None)
data = fp.readline()
pos = fp.tell()
if "__pypy__" in sys.modules:
> assert repr(fp.newlines) == repr(NEWLINE)
E assert "'\\r'" == "'\\r\\n'"
E - '\r\n'
E ? --
E + '\r'
..\build\pypy\module\_io\test\apptest_io.py:559: AssertionError
_________________________ test_incremental_big5hkscs __________________________
def test_incremental_big5hkscs():
import _codecs
import _io
with open(myfile + '/big5hkscs.txt', 'rb') as fid:
uni_str = fid.read()
with open(myfile + '/big5hkscs-utf8.txt', 'rb') as fid:
utf8str = fid.read()
UTF8Reader = _codecs.lookup('utf-8').streamreader
for sizehint in [None] + list(range(1, 33)) + [64, 128, 256, 512, 1024]:
istream = UTF8Reader(_io.BytesIO(utf8str))
ostream = _io.BytesIO()
encoder = IncrementalBig5hkscsEncoder()
while 1:
if sizehint is not None:
data = istream.read(sizehint)
else:
data = istream.read()
if not data:
break
> e = encoder.encode(data)
E UnicodeEncodeError: 'big5hkscs' codec can't encode character '\U0002010c' in position 0: illegal multibyte sequence
..\build\pypy\module\_multibytecodec\test\apptest_incremental.py:270: UnicodeEncodeError
__________________________ test_fire_py_start_return __________________________
def test_fire_py_start_return():
E = sys.monitoring.events
events = []
def callback(*args):
events.append(args)
sys.monitoring.use_tool_id(3, "test tool")
try:
sys.monitoring.register_callback(3, E.PY_START, callback)
sys.monitoring.register_callback(3, E.PY_RETURN, callback)
sys.monitoring.set_events(3, E.PY_START | E.PY_RETURN)
def f():
return 42
events.clear()
assert f() == 42
> assert len(events) == 2
E assert 1 == 2
E + where 1 = len([(<code object f at 0x000001d0517e9cd0, file "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\module\s..._stuff\buildbot64\slave\pypy-c-jit-win-x86-64\venv\pypy-venv\Lib\site-packages\pluggy\_manager.py", line 516>, 0), ...])
..\build\pypy\module\sys\test\apptest_monitoring.py:316: AssertionError
__________________________ test_fire_py_yield_resume __________________________
def test_fire_py_yield_resume():
E = sys.monitoring.events
events = []
def callback(*args):
events.append(args[:2])
sys.monitoring.use_tool_id(3, "test tool")
try:
sys.monitoring.register_callback(3, E.PY_START, callback)
sys.monitoring.register_callback(3, E.PY_RESUME, callback)
sys.monitoring.register_callback(3, E.PY_YIELD, callback)
sys.monitoring.register_callback(3, E.PY_RETURN, callback)
sys.monitoring.set_events(3, E.PY_START | E.PY_RESUME | E.PY_YIELD | E.PY_RETURN)
def g():
yield 1
yield 2
events[:] = []
gen = g()
code = g.__code__
assert next(gen) == 1
assert next(gen) == 2
raises(StopIteration, next, gen)
sys.monitoring.set_events(3, 0)
g_events = [ev for ev in events if ev[0] is code]
> assert len(g_events) == 6 # start, yield, resume, yield, resume, return
E assert 5 == 6
E + where 5 = len([(<code object g at 0x000001d051828020, file "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\module\s...d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\module\sys\test\apptest_monitoring.py", line 340>, 10)])
..\build\pypy\module\sys\test\apptest_monitoring.py:352: AssertionError
____________ test_strftime_surrogateescaped_bytes_do_not_recombine ____________
def test_strftime_surrogateescaped_bytes_do_not_recombine():
import time
t = time.localtime(192039127)
assert time.strftime('\udcf0\udc9f\udc90\udc8d', t) == '\udcf0\udc9f\udc90\udc8d'
> assert time.strftime('🐍', t) == '🐍'
E AssertionError: assert '\uf40d' == '🐍'
E - 🐍
E +
..\build\pypy\module\time\test\apptest_time.py:694: AssertionError
============================== warnings summary ===============================
pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:689: 26 warnings
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\venv\pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:689: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
and isinstance(item.value, ast.Str)
pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:691: 26 warnings
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\venv\pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:691: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead
doc = item.value.s
pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:958: 8776 warnings
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\venv\pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:958: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
inlocs = ast.Compare(ast.Str(name.id), [ast.In()], [locs])
pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:961: 8776 warnings
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\venv\pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:961: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
expr = ast.IfExp(test, self.display(name), ast.Str(name.id))
pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:1071: 5731 warnings
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\venv\pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:1071: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
syms.append(ast.Str(sym))
pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:1073: 5731 warnings
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\venv\pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:1073: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
expls.append(ast.Str(expl))
pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:823: 31423 warnings
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\venv\pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:823: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
keys = [ast.Str(key) for key in current.keys()]
pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:933: 6114 warnings
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\venv\pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:933: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
assertmsg = ast.Str("")
pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:935: 6285 warnings
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\venv\pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:935: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
template = ast.BinOp(assertmsg, ast.Add(), ast.Str(explanation))
pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:947: 6270 warnings
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\venv\pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:947: DeprecationWarning: ast.NameConstant is deprecated and will be removed in Python 3.14; use ast.Constant instead
clear = ast.Assign(variables, ast.NameConstant(None))
pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:983: 133 warnings
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\venv\pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:983: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
expl_format = self.pop_format_context(ast.Str(expl))
pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:995: 66 warnings
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\venv\pypy-venv\Lib\site-packages\_pytest\assertion\rewrite.py:995: DeprecationWarning: ast.Num is deprecated and will be removed in Python 3.14; use ast.Constant instead
expl_template = self.helper("_format_boolop", expl_list, ast.Num(is_or))
..\build\pypy\module\cpyext\test\conftest.py:44
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\module\cpyext\test\conftest.py:44: PytestDeprecationWarning: @pytest.yield_fixture is deprecated.
Use @pytest.fixture instead; they are the same.
@pytest.yield_fixture(autouse=True, scope='session')
..\build\pypy\objspace\std\test\apptest_unicode.py:657
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\objspace\std\test\apptest_unicode.py:657: SyntaxWarning: invalid escape sequence '\?'
('\?', b'+AFw?'),
pypy/interpreter/astcompiler/test/apptest_compiler.py::test_bug_lnotab
<string>:12: DeprecationWarning: co_lnotab is deprecated, use co_lines instead.
pypy/interpreter/astcompiler/test/apptest_compiler.py::test_lnotab_backwards_in_expr
pypy/interpreter/astcompiler/test/apptest_compiler.py::test_lineno_docstring_class
<string>:5: DeprecationWarning: co_lnotab is deprecated, use co_lines instead.
pypy/interpreter/astcompiler/test/apptest_compiler.py::test_lineno_funcdef
<string>:7: DeprecationWarning: co_lnotab is deprecated, use co_lines instead.
pypy/interpreter/test/apptest_compiler.py::test_folding_of_binops_on_constants_crash
:1: SyntaxWarning: tuple indices must be integers or slices, not ellipsis; perhaps you missed a comma?
pypy/interpreter/test/apptest_pycode.py::test_invalid_positions_dont_crash
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\interpreter\test\apptest_pycode.py:11: DeprecationWarning: co_lnotab is deprecated, use co_lines instead.
c.co_lnotab
pypy/interpreter/test/apptest_pyframe.py::test_f_lineno_huge_jump
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\interpreter\test\apptest_pyframe.py:63: DeprecationWarning: co_lnotab is deprecated, use co_lines instead.
print(repr(g.__code__.co_lnotab))
pypy/interpreter/test/apptest_pyframe.py::test_jump_forwards_over_listcomp
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\interpreter\test\apptest_pyframe.py:132: RuntimeWarning: assigning None to 1 unbound local
frame.f_lineno = self.firstLine + self.jumpTo
pypy/interpreter/test/apptest_settrace_jump.py::test_jump_over_assignment_warns_unbound_local
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\interpreter\test\apptest_settrace_jump.py:113: RuntimeWarning: assigning None to 1 unbound local
frame.f_lineno = firstline + 3
pypy/interpreter/test/apptest_sys_settrace.py: 11 warnings
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\interpreter\test\apptest_sys_settrace.py:1511: RuntimeWarning: assigning None to 1 unbound local
frame.f_lineno = self.firstLine + self.jumpTo
pypy/interpreter/test/apptest_sys_settrace.py::test_jump_over_try_except
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\interpreter\test\apptest_sys_settrace.py:1511: RuntimeWarning: assigning None to 2 unbound locals
frame.f_lineno = self.firstLine + self.jumpTo
pypy/module/_sre/test/apptest_sre.py::test_magic
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\module\_sre\test\apptest_sre.py:54: DeprecationWarning: module 'sre_constants' is deprecated
import _sre, sre_constants
pypy/module/_sre/test/apptest_sre.py::test_no_pattern
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\module\_sre\test\apptest_sre.py:274: DeprecationWarning: module 'sre_compile' is deprecated
import sre_compile, sre_parse
pypy/module/_sre/test/apptest_sre.py::test_no_pattern
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\module\_sre\test\apptest_sre.py:274: DeprecationWarning: module 'sre_parse' is deprecated
import sre_compile, sre_parse
pypy/module/_warnings/test/apptest_warnings.py::test_defaults
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\module\_warnings\test\apptest_warnings.py:20: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
pypy/module/_weakref/test/apptest_weakref.py::test_buggy_case
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\venv\pypy-venv\Lib\site-packages\_pytest\unraisableexception.py:78: PytestUnraisableExceptionWarning: : <function test_buggy_case.<locals>.A.__del__ at 0x000001d0546da020>
TypeError: test_buggy_case.<locals>.A.__del__() takes 0 positional arguments but 1 was given
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
pypy/module/_weakref/test/apptest_weakref.py::test_callback_raises
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\venv\pypy-venv\Lib\site-packages\_pytest\unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored in: weakref callback : <function test_callback_raises.<locals>.callback at 0x000001d05a36b3a8>
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\module\_weakref\test\apptest_weakref.py", line 498, in callback
explode
NameError: name 'explode' is not defined
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
pypy/module/marshal/test/apptest_marshal.py::test_code_object
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\module\marshal\test\apptest_marshal.py:220: DeprecationWarning: co_lnotab is deprecated, use co_lines instead.
if callable(getattr(code2, attr_name)): # co_lines, co_positions
pypy/module/marshal/test/apptest_marshal.py::test_code_object
pypy/module/marshal/test/apptest_marshal.py::test_code_object
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\module\marshal\test\apptest_marshal.py:223: DeprecationWarning: co_lnotab is deprecated, use co_lines instead.
assert getattr(code2, attr_name) == getattr(foo.__code__, attr_name)
pypy/objspace/std/test/apptest_intobject.py::test_int_subclass_int
pypy/objspace/std/test/apptest_intobject.py::test_int_subclass_int
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\objspace\std\test\apptest_intobject.py:126: DeprecationWarning: __int__ returned non-int (type subint). The ability to return an instance of a strict subclass of int is deprecated, and may be removed in a future version of Python.
assert int(j()) == 42 and type(int(j())) is int
pypy/objspace/std/test/apptest_intobject.py::test_int_subclass_int
pypy/objspace/std/test/apptest_intobject.py::test_int_subclass_int
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\objspace\std\test\apptest_intobject.py:128: DeprecationWarning: __int__ returned non-int (type subint). The ability to return an instance of a strict subclass of int is deprecated, and may be removed in a future version of Python.
assert (int(j()) == 4200000000000000000000000000000000
pypy/objspace/std/test/apptest_intobject.py::test_int_constructor_calls_index
d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\pypy\objspace\std\test\apptest_intobject.py:556: DeprecationWarning: __index__ returned non-int (type subint). The ability to return an instance of a strict subclass of int is deprecated, and may be removed in a future version of Python.
x = int(A())
-- Docs: https://docs.pytest.org/en/stable/warnings.html
- generated xml file: d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\venv\test-D.log -
=========================== short test summary info ===========================
FAILED ..\build\pypy\interpreter\test\apptest_compiler.py::test_dont_share_lambdas
FAILED ..\build\pypy\interpreter\test\apptest_settrace_jump.py::test_jump_over_assignment_warns_unbound_local
FAILED ..\build\pypy\interpreter\test\apptest_traceback.py::test_colors_in_traceback
FAILED ..\build\pypy\module\_io\test\apptest_io.py::test_telling - assert 4 == 3
FAILED ..\build\pypy\module\_io\test\apptest_io.py::test_warn_on_dealloc - as...
FAILED ..\build\pypy\module\_io\test\apptest_io.py::test_tell_univnewlines - ...
FAILED ..\build\pypy\module\_multibytecodec\test\apptest_incremental.py::test_incremental_big5hkscs
FAILED ..\build\pypy\module\sys\test\apptest_monitoring.py::test_fire_py_start_return
FAILED ..\build\pypy\module\sys\test\apptest_monitoring.py::test_fire_py_yield_resume
FAILED ..\build\pypy\module\time\test\apptest_time.py::test_strftime_surrogateescaped_bytes_do_not_recombine
======== 10 failed, 2512 passed, 38 skipped, 79394 warnings in 51.48s =========
program finished with exit code 1
elapsedTime=55.498000