cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://quodlibet.duckdns.org/irc/pypy/latest.log.html#irc-end ) | use cffi for calling C | if a pep adds a mere 25-30 [C-API] functions or so, it's a drop in the ocean (cough) - Armin
wilbowma has quit [Ping timeout: 260 seconds]
wilbowma has joined #pypy
jcea has quit [Ping timeout: 258 seconds]
jcea has joined #pypy
jcea has quit [Ping timeout: 260 seconds]
Smigwell has quit [Ping timeout: 258 seconds]
oberstet has joined #pypy
<arigato> cfbolz: ah, figured out the apptest_warning issue
<arigato> the problem is that the unicode string can or cannot be encoded in the default encoding, depending on where it runs
<arigato> if it can't, then the whole warning is dropped
<arigato> it's really a bug: CPython calls sys.stderr.write(unicode), but pypy tries to encode things
<arigato> ...no
<arigato> very confused
<arigato> CPython's warnings.py has definitely a bug
<arigato> it does "try: message=str(message); except UnicodeEncodeError: pass
<arigato> but the next line is "...%s" % (..., message)
<arigato> which will of course re-raise the UnicodeEncodeError just catched
<arigato> ah, we actually fixed it!
<arigato> bc4acc4caa28
<arigato> (i.e. I did the fix)
<cfbolz> arigato: right, so it's a real test
<arigato> but it has no chance to work on cpython
<cfbolz> I suppose I should have looked at the commit of that file
<cfbolz> ok, so we should skip it under cpython, to document this fact
<cfbolz> but what about the pypy failure?
<arigato> yes
<arigato> still looking
<cfbolz> thanks :-)
<arigato> reproduced by going to the buildbot and copying the exact same command line as the one recorded in http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7385/steps/shell_14/logs/stdio
<arigato> a slightly different one doesn't cause the failure
<arigato> OK, it's because in this new way to run pytest, there's a "with warnings.catch_warnings(record=True) as log:"
<arigato> so all these warnings end up not being written
<arigato> including the previous one
<arigato> the tests don't fail until later because ''.join() of an empty string is indeed a str
<arigato> ...''.join() of an empty list
<cfbolz> arigato: ouch
<arigato> fixed now
lritter has joined #pypy
astronavt has quit [Quit: ...]
astronavt has joined #pypy
astronavt has quit [Remote host closed the connection]
astronavt has joined #pypy
catern has quit [Ping timeout: 240 seconds]
runciter has quit [Ping timeout: 240 seconds]
catern has joined #pypy
runciter has joined #pypy
darley has joined #pypy
darley is now known as Guest67731
tos9 has quit [Ping timeout: 256 seconds]
tbodt has quit [Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in]
tbodt has joined #pypy
tbodt has quit [Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in]
tbodt has joined #pypy
tbodt has quit [Client Quit]
tbodt has joined #pypy
lritter has quit [Quit: Leaving]
Guest67731 has quit [Quit: Connection closed for inactivity]
Guest87173 has joined #pypy
Guest67731 has joined #pypy
tos9 has joined #pypy