File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import builtins
44import io
55import os
6+ import shutil
67import uuid
78
89def importable (name ):
@@ -369,6 +370,11 @@ def test_find_mac(self):
369370 def mock_popen (cmd ):
370371 return io .StringIO (data )
371372
373+ if shutil .which ('ifconfig' ) is None :
374+ path = os .pathsep .join (('/sbin' , '/usr/sbin' ))
375+ if shutil .which ('ifconfig' , path = path ) is None :
376+ self .skipTest ('requires ifconfig' )
377+
372378 with support .swap_attr (os , 'popen' , mock_popen ):
373379 mac = uuid ._find_mac (
374380 command = 'ifconfig' ,
Original file line number Diff line number Diff line change 234234Tests
235235-----
236236
237+ - Issue #19804: The test_find_mac test in test_uuid is now skipped if the
238+ ifconfig executable is not available.
239+
237240- Issue #19886: Use better estimated memory requirements for bigmem tests.
238241
239242- Issue #20055: Fix test_shutil under Windows with symlink privileges held.
You can’t perform that action at this time.
0 commit comments