[Python-Dev] uuid test suite failing (original) (raw)
Neal Norwitz nnorwitz at gmail.com
Fri Jul 28 09:24:52 CEST 2006
- Previous message: [Python-Dev] uuid test suite failing
- Next message: [Python-Dev] uuid test suite failing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 7/27/06, A.M. Kuchling <amk at amk.ca> wrote:
On Thu, Jul 27, 2006 at 05:40:57PM +0200, Georg Brandl wrote: > The UUID test suite, which wasn't run by regrtest.py until now, is > now failing on some buildbots (and my machine). This should be fixed > before releasing something.
Looking at the failures, there seem to be two problems on Unix variants: 1) on some, '/sbin/ifconfig' prints a help message; you need 'ifconfig -a' to print information about all interfaces. 2) on Solaris 9 (the only version in the SF compile farm), I can't figure out how to make ifconfig print MAC addresses at all. Searching online finds the incantation 'arp ' to print the MAC.
This is such a mess. There are so many different ways of determining the MAC addr on each flavour of Unix it seems hopeless to try. I fixed _ifconfig_getnode so it should work on at least: Linux, Tru64, Solaris, and HP-UX. Who knows how many more variations there are.
This only fixes 1 of the 2 failures in test_uuid. The other one is due to _unixdll_getnode() failing. This is because _uuid_generate_time is None because we couldn't find it in the uuid library. This is just broken, not sure if it's the code or the test though. We should handle the case if _uuid_generate_time and the others are None better. I don't know what to do in this case.
Since getnode ignores exceptions, maybe it's the test that is broken?
n
- Previous message: [Python-Dev] uuid test suite failing
- Next message: [Python-Dev] uuid test suite failing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]