cfbolz changed the topic of #pypy to: #pypy PyPy, the flexible snake https://pypy.org | IRC logs: https://quodlibet.duckdns.org/irc/pypy/latest.log.html#irc-end and https://libera.irclog.whitequark.org/pypy | insert pithy quote here
fotis has quit [Ping timeout: 240 seconds]
Ododo has quit [Quit: leaving]
lritter has quit [Ping timeout: 252 seconds]
lritter has joined #pypy
lritter has quit [Ping timeout: 240 seconds]
krono has quit [Ping timeout: 272 seconds]
fotis has joined #pypy
fotis has quit [Ping timeout: 252 seconds]
krono has joined #pypy
yuiza has joined #pypy
Julian has joined #pypy
fotis has joined #pypy
fotis has quit [Ping timeout: 248 seconds]
Julian has quit [Ping timeout: 252 seconds]
fotis has joined #pypy
Julian has joined #pypy
fotis has quit [Ping timeout: 252 seconds]
Julian has quit [Ping timeout: 248 seconds]
fotis has joined #pypy
mattil has joined #pypy
fotis has quit [Ping timeout: 248 seconds]
fotis has joined #pypy
jacob22 has quit [Ping timeout: 250 seconds]
jacob22 has joined #pypy
fotis has quit [Ping timeout: 250 seconds]
fotis has joined #pypy
fotis has quit [Ping timeout: 240 seconds]
fotis has joined #pypy
Atque has joined #pypy
fotis has quit [Ping timeout: 250 seconds]
stkrdknmibalz has quit [Quit: WeeChat 3.0.1]
fotis has joined #pypy
fotis has quit [Ping timeout: 240 seconds]
Atque has quit [Quit: ...]
lritter has joined #pypy
fotis has joined #pypy
fotis has quit [Ping timeout: 240 seconds]
fotis has joined #pypy
Atque has joined #pypy
fotis has quit [Ping timeout: 252 seconds]
storchaka has joined #pypy
<storchaka> Hello! I have issues with running PyPy tests. Could anybody please help me?
<storchaka> I get:
<storchaka> Traceback (application-level):
<storchaka> File "/home/serhiy/py/pypy-py3.7/pypy/tool/pytest/run-script/regrverbose.py", line 11 in <module>
<storchaka> regrtest.replace_stdout()
<storchaka> AttributeError: module 'test.regrtest' has no attribute 'replace_stdout'
fotis has joined #pypy
fotis has quit [Ping timeout: 250 seconds]
fotis has joined #pypy
fotis has quit [Ping timeout: 248 seconds]
<LarstiQ> how are you running them?
<LarstiQ> see https://doc.pypy.org/en/improve-docs/getting-started-dev.html for some different options
<storchaka> python pytest.py -vv lib-python/3/test/test_bz2.py
<storchaka> I get it from that link
fotis has joined #pypy
<cfbolz> storchaka: where python is a pypy binary?
<cfbolz> a simple way to run them is to use pypy -m test.test_bz2
<storchaka> cfbolz: no, python is a system Python2.7 binary
fotis has quit [Ping timeout: 240 seconds]
<storchaka> $ pypy -m test.test_bz2
<storchaka> /usr/bin/pypy: No module named test.test_bz2
<storchaka> I want to run tests not with system PyPy, but with just built PyPy from the source tree
<storchaka> I finally found the PyPy binary -- it is ./pypy/goal/pypy3-c. But seems it is never documented.
fotis has joined #pypy
<cfbolz> storchaka: yeah, our dev guide needs a tune up, sorry
<cfbolz> storchaka: what are you working on?
<storchaka> I am going to port some PyPy changes in the Python test to upstream. I want to test what of them are necessary and whether alternate solutions work.
<cfbolz> storchaka: right, that's fantastic, thanks a lot! If I can help with anything, let me know
<mattip> storchaka: thanks. Can you suggest where we should change documentation to make onboarding easier?
<mattip> I run the stdlib tests with
<mattip> ./pypy3-c lib-python3/test/test_bz2.py
<cfbolz> storchaka: going forward, we should really try to submit some of these changes more proactively from our side
<cfbolz> in fact I opened one such minor PR yesterday: https://github.com/python/cpython/pull/28002
<storchaka> mattip: I think it should be mentioned in https://doc.pypy.org/en/improve-docs/getting-started-dev.html and maybe in README.rst
<storchaka> I opened an issue for porting PyPy changes several years ago (https://bugs.python.org/issue25130) and finally make some progress in it.
<mattip> hmm. Do you know how you got to that link? It is off an older branch of the docs, the current page is
<mattip> (which can use improvement as well)
<mattip> is there a stale link somewhere pointing to that page?
<storchaka> mattip: Actually I got to .../contributing.html#testing. .../getting-started-dev.html was mentioned by LarstiQ above. They contents are similar, so I confused them.
<mattip> LarstiQ ^^^
Julian has joined #pypy
Julian has quit [Ping timeout: 252 seconds]
Julian has joined #pypy
<mattip> storchaka: I updated the docs. Does this make more sense now?
<mattip> grr, typo. Fixing
Julian has quit [Quit: leaving]
gef has quit [Read error: Connection reset by peer]
gef has joined #pypy
<storchaka> mattip: The main problem was that pypy3 runs system PyPy. How to run PyPy from the source tree? It is not documented
Atque has quit [Quit: ...]
<storchaka> In CPython I checkout sources, build Python with ./configure and make, and run tests with "make test". All steps are described in README.rst. It describes also how to run only selected tests.
<storchaka> In PyPy I can build with make, but all instructions for running tests run system CPython or PyPy.
fotis has quit [Ping timeout: 250 seconds]
storchaka has quit [Quit: Konversation terminated!]
stkrdknmibalz has joined #pypy
<mattip> hmm. In PyPy there are many different kinds of tests:
<mattip> "untranslated" that compile pieces of RPython and then test that mini-compiler
<mattip> "app-level" that can test untranslated or can test CPython or can test translated PyPy
<mattip> and cpython stdlib (and some lib_pypy ones for cffi-extensions) that can only be run post-translation
<mattip> most of our energy goes into the untranslated tests
Atque has joined #pypy
Atque_ has joined #pypy
Atque has quit [Quit: ...]
Atque_ has quit [Quit: ...]
Atque has joined #pypy
fotis has joined #pypy
mattil has quit [Quit: Leaving]
idnar has quit [Ping timeout: 258 seconds]
idnar has joined #pypy
idnar has quit [Ping timeout: 240 seconds]
idnar has joined #pypy
krono has quit [Ping timeout: 252 seconds]
krono has joined #pypy