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
Date 2017-11-21.17:10:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1511284223.14.0.213398074469.issue32107@psf.upfronthosting.co.za>
In-reply-to
Content
The check_node() function in test_uuid.py uses the wrong bitmask, causing the tests to fail on valid MAC addresses.  Also, the description in the comment is incorrect.  From my reading of the wikipedia page, the test is trying to ensure that the MAC address is "universally administered", which is designated by a zero value in "the second least significant digit of the first octet".

Thus the bitmask value *and* the comment are both wrong AFAICT, given that the original value is:

% ./python.exe -c "from math import log2; print(log2(0x010000000000))"
40.0

I have a fix that passes on my machine, so I'll PR that and see if it passes on CI.
History
Date User Action Args
2017-11-21 17:10:23barrysetrecipients: + barry
2017-11-21 17:10:23barrysetmessageid: <1511284223.14.0.213398074469.issue32107@psf.upfronthosting.co.za>
2017-11-21 17:10:23barrylinkissue32107 messages
2017-11-21 17:10:23barrycreate