This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry
Recipients barry, serhiy.storchaka
Date 2017-11-21.20:24:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Yikes.  It's entirely possible that these tests are tainted by environmental leakage.  I was looking into why Travis fails on my PR:

and stepping through _ifconfig_getnode() on my Mac.  The "ibridge" interface is getting returned, which has a MAC address of:

>>> from uuid import _ifconfig_getnode
>>> mac = _ifconfig_getnode()
>>> hex(mac)

That's for the en5 interface, which according to this article is the bridge to the Touch Bar, and *the same on every Mac*.

Why I think that's problematic for this particular test is that whatever gets returned is going to be highly dependent on the hardware the test is run on, and it's entirely possible that the MAC address returned is indeed locally administered and not tied to a physical external (and thus required to be universally administered) MAC address.

Mocking _ifconfig_*() probably isn't a good idea because these tests are worthless that way.  But it's also true that the _ifconfig_*() methods can match unexpected interfaces which cause the test to fail incorrectly.  It's a mess, and I'm not sure what to do about it.
Date User Action Args
2017-11-21 20:24:55barrysetrecipients: + barry, serhiy.storchaka
2017-11-21 20:24:55barrysetmessageid: <>
2017-11-21 20:24:55barrylinkissue32107 messages
2017-11-21 20:24:55barrycreate