summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_uuid.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-11-30 18:39:04 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-11-30 18:39:04 (GMT)
commitac4aa7b6aad76b404ed1e695b3130988d87fb39f (patch)
treeed6e8286e1a33dc271169fbcd42101544b4143fa /Lib/test/test_uuid.py
parent16e802f4aed9db71a2e25fa25daa8fed0fc2e539 (diff)
downloadcpython-ac4aa7b6aad76b404ed1e695b3130988d87fb39f.zip
cpython-ac4aa7b6aad76b404ed1e695b3130988d87fb39f.tar.gz
cpython-ac4aa7b6aad76b404ed1e695b3130988d87fb39f.tar.bz2
Issue #22902: The "ip" command is now used on Linux to determine MAC address
in uuid.getnode(). Pach by Bruno Cauet.
Diffstat (limited to 'Lib/test/test_uuid.py')
-rw-r--r--Lib/test/test_uuid.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_uuid.py b/Lib/test/test_uuid.py
index bfa9f97..bc83de2 100644
--- a/Lib/test/test_uuid.py
+++ b/Lib/test/test_uuid.py
@@ -321,6 +321,12 @@ class TestUUID(unittest.TestCase):
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()
if node is not None: