File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -358,6 +358,17 @@ def test_find_mac(self):
358
358
def mock_popen (cmd ):
359
359
return io .BytesIO (data )
360
360
361
+ path = os .environ .get ("PATH" , os .defpath ).split (os .pathsep )
362
+ path .extend (('/sbin' , '/usr/sbin' ))
363
+ for dir in path :
364
+ executable = os .path .join (dir , 'ifconfig' )
365
+ if (os .path .exists (executable ) and
366
+ os .access (executable , os .F_OK | os .X_OK ) and
367
+ not os .path .isdir (executable )):
368
+ break
369
+ else :
370
+ self .skipTest ('requires ifconfig' )
371
+
361
372
with test_support .swap_attr (os , 'popen' , mock_popen ):
362
373
mac = uuid ._find_mac (
363
374
command = 'ifconfig' ,
Original file line number Diff line number Diff line change 161
161
Tests
162
162
-----
163
163
164
+ - Issue #19804: The test_find_mac test in test_uuid is now skipped if the
165
+ ifconfig executable is not available.
166
+
164
167
- Issue #19886: Use better estimated memory requirements for bigmem tests.
165
168
166
169
- Backported tests for Tkinter variables.
You can’t perform that action at this time.
0 commit comments