<mattip>
space needs objspace.disable_entrypoints_in_cffi = True, while pypy-c was built with None
<mattip>
they run find with
<mattip>
python2 pytest.py -A --python=pypy3.8 pypy/module/cpyext/test/test_unicodeobject.py
<mattip>
strangely, the macOS buildbot does run the tests using pypy2
<cfbolz>
mattip: wasn't that what matt was saying he plans to do on pypy-dev?
<komasa>
cfbolz: Managed to also trigger my bug with CPython, though the output still differs somewhat. Somehow CPython gets 2 out of the 4 objects correct still.
<komasa>
So this is most likely _not_ a pypy bug, and just some code relying on something that shouldn't be relied upon
<mattip>
cfbolz: right, the buildbot is fine. The top of the rabbit hole is the CI failure with pypy3.8 + macOS + cython
<cfbolz>
komasa: yes, some pypy rejiggling might make the bug more likely
<mattip>
so I started looking at running the cpyext tests around unicode, which is what is failing,
<mattip>
and then tried to run some tests, and then came up against the phenomenon that -A fails locally but passes on the buildbot
<cfbolz>
mattip: right
<cfbolz>
do the cpyext tests work on default on pypy2?
<mattip>
yes, pypy2 pytest.py -A pypy/module/cpyext/test/test_unicode.py runs the tests without skipping them
<komasa>
I think I found the bug. The library was using a WeakValueDictionary deep inside the code
<cfbolz>
ah :-(
<komasa>
Though the code around this was specifically for some caching stuff, that explicitly says that if an object of some hash exists already, the cached one will be returned.
<LarstiQ>
the key here might be, when exactly does it exist?
<komasa>
Oh, that I know
<komasa>
At this point this is an oversight in the library that I think I fully understand
<komasa>
My other test cases where already running certain code that created objects that had the same hash
f4at has joined #pypy
lritter has quit [Ping timeout: 248 seconds]
<ronan>
mattip: I fixed it with 64de87cccf29 though I wish the differences between py2 and py3 were clearer in the code
<mattip>
ronan: thanks
greedom has joined #pypy
f4at has quit [Quit: bye]
greedom has quit [Remote host closed the connection]
greedom has joined #pypy
otisolsen70 has quit [Quit: Leaving]
greedom has quit [Remote host closed the connection]