]> granicus.if.org Git - python/commit
Merged revisions 79954 via svnmerge from
authorStefan Krah <stefan@bytereef.org>
Sun, 11 Apr 2010 16:36:10 +0000 (16:36 +0000)
committerStefan Krah <stefan@bytereef.org>
Sun, 11 Apr 2010 16:36:10 +0000 (16:36 +0000)
commitbdee329d8014ef53da7c27f3de1cd33c0fdbde14
tree0763a4a107fa0f9ab8718aac568c86770d727c67
parentb0765c464804edd7c87db8843704adb7d4a242d5
Merged revisions 79954 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79954 | stefan.krah | 2010-04-11 17:15:54 +0200 (Sun, 11 Apr 2010) | 17 lines

  Fix for issues #3581, #1481 and #7650:

  1. The assumptions in check_node() were too restrictive:

       - Hardware addresses with universal_local_bit=1 are valid
         (locally administered).

       - Many of the tested functions (including uuid.getnode())
         may return valid RFC 4122 random node IDs. These are pretty
         much random 48-bit values with the multicast bit set to 1.

  2. _unixdll_getnode() calls _uuid_generate_time(), which may be None
     on some platforms. The resulting TypeError is now caught.
........
Lib/test/test_uuid.py