Issue #22902: The "ip" command is now used on Linux to determine MAC address

in uuid.getnode().  Pach by Bruno Cauet.
This commit is contained in:
Serhiy Storchaka 2014-11-30 20:39:04 +02:00
parent 16e802f4ae
commit ac4aa7b6aa
4 changed files with 19 additions and 2 deletions

View file

@ -320,6 +320,12 @@ class TestUUID(unittest.TestCase):
if node is not None:
self.check_node(node, 'ifconfig')
@unittest.skipUnless(os.name == 'posix', 'requires Posix')
def test_ip_getnode(self):
node = uuid._ip_getnode()
if node is not None:
self.check_node(node, 'ip')
@unittest.skipUnless(os.name == 'posix', 'requires Posix')
def test_arp_getnode(self):
node = uuid._arp_getnode()