Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
cce440fa
Commit
cce440fa
authored
Jan 10, 2014
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #19804: The test_find_mac test in test_uuid is now skipped if the
ifconfig executable is not available.
parent
4847e4e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
Lib/test/test_uuid.py
Lib/test/test_uuid.py
+6
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_uuid.py
View file @
cce440fa
...
...
@@ -3,6 +3,7 @@ from test import support
import
builtins
import
io
import
os
import
shutil
import
uuid
def
importable
(
name
):
...
...
@@ -369,6 +370,11 @@ eth0 Link encap:Ethernet HWaddr 12:34:56:78:90:ab
def
mock_popen
(
cmd
):
return
io
.
StringIO
(
data
)
if
shutil
.
which
(
'ifconfig'
)
is
None
:
path
=
os
.
pathsep
.
join
((
'/sbin'
,
'/usr/sbin'
))
if
shutil
.
which
(
'ifconfig'
,
path
=
path
)
is
None
:
self
.
skipTest
(
'requires ifconfig'
)
with
support
.
swap_attr
(
os
,
'popen'
,
mock_popen
):
mac
=
uuid
.
_find_mac
(
command
=
'ifconfig'
,
...
...
Misc/NEWS
View file @
cce440fa
...
...
@@ -234,6 +234,9 @@ IDLE
Tests
-----
- Issue #19804: The test_find_mac test in test_uuid is now skipped if the
ifconfig executable is not available.
- Issue #19886: Use better estimated memory requirements for bigmem tests.
- Issue #20055: Fix test_shutil under Windows with symlink privileges held.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment