Re: zope-tests - FAILED: 1, OK: 13

Marius Gedminas <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <20140109181418.GA27306@platonas>
On Wed, Jan 08, 2014 at 01:49:19PM -0500, Tres Seaver wrote:
> On 01/08/2014 09:16 AM, Marius Gedminas wrote:
> > On Tue, Jan 07, 2014 at 02:26:04PM +0200, Marius Gedminas wrote:
> >> On Mon, Jan 06, 2014 at 07:27:34PM -0500, Tres Seaver wrote:
> >>> On 01/06/2014 07:00 PM, Zope tests summarizer wrote:
> >>>> [1]    FAILED  winbot / zope.security_py_265_32 
> >>>> https://mail.zope.org/pipermail/zope-tests/2014-January/080355.html
> >>>
> >>>
> >>>> 
> Beautiful!  Who knows what the real failure is, but theerror message
> >>> shows case sensitivity for hexits.  And on my machine, the tests
> >>> fail differently, because '_tkinter' is not importable.
> >>> Aaaargh!
> >> 
> >> Not just _tkinter.  I especially love the tox failures due to
> >> 
> >> ImportError: No module named _winreg
> >> 
> >> on my Linux laptop.
> > 
> > Solved it: 
> > https://github.com/zopefoundation/zope.security/commit/dceaae23490a5cb2c305246305e6b3a51c29d3a5
> 
> Good
> > 
> on you for fixing it, but holy crap, that is insane!
> 
> > Now I just can't reproduce the hex address difference.  Something to
> > do with Windows?  Platform-specific %p formatting?
> > 
> > Why did it only start showing up now?  Semi-deterministic memory 
> > addresses that just happened to never contain any hex digits above
> > 0x9 until now?
> 
> Hellifiknow.  I see zero value to spelling that comparison that way, anyhow.

Fun fact: it *is* platform-specific %p formatting, and it came into my
mind because *I'd already figured out and fixed it (incompletely) once
before*:
https://github.com/zopefoundation/zope.security/commit/e1d5f7cf375ccdfb8f6207c2bf813ca64c1d7bda

So
https://github.com/zopefoundation/zope.security/commit/45e8a8563dcbc82c615fb4c52aad067735580443
fixes the problem for now, and I'll be very happy if anyone can come up with a
saner unit test, but I don't want to even think about this any more
right now.

Except, I just remembered one thing: I was a Very Bad Person and
duplicated[*] the _fmt_address() function in proxy.py and in test_proxy.py.
And now I changed only one of them.

  [*] don't remember why, maybe I thought that the pure-Python module
      couldn't always be imported due to name clashes with the C module?

*sigh*  BRB, fixing.  (While tired and hungry at the end of a long day,
best time for such fixes, to ensure more fixes will be necessary in the
future.)

Marius Gedminas
-- 
http://pov.lt/ -- Zope 3/BlueBream consulting and development

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
signature.asc (application/pgp-signature, 190 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iD8DBQFSzub6kVdEXeem148RAvP+AKCOMx7iIHlwXdahdm9oYxDp0VvDiwCfWXbm
sQpT/VGrW52hgBGtQeZWzjk=
=a6gI
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.