mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
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:
parent
16e802f4ae
commit
ac4aa7b6aa
4 changed files with 19 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue