本文整理汇总了Python中uuid._ifconfig_getnode方法的典型用法代码示例。如果您正苦于以下问题:Python uuid._ifconfig_getnode方法的具体用法?Python uuid._ifconfig_getnode怎么用?Python uuid._ifconfig_getnode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类uuid
的用法示例。
在下文中一共展示了uuid._ifconfig_getnode方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_ifconfig_getnode
# 需要导入模块: import uuid [as 别名]
# 或者: from uuid import _ifconfig_getnode [as 别名]
def test_ifconfig_getnode(self):
node = uuid._ifconfig_getnode()
self.check_node(node, 'ifconfig')
示例2: test_ifconfig_getnode
# 需要导入模块: import uuid [as 别名]
# 或者: from uuid import _ifconfig_getnode [as 别名]
def test_ifconfig_getnode(self):
import sys
import os
if os.name == 'posix':
node = uuid._ifconfig_getnode()
if node is not None:
self.check_node(node, 'ifconfig')
示例3: test_ifconfig_getnode
# 需要导入模块: import uuid [as 别名]
# 或者: from uuid import _ifconfig_getnode [as 别名]
def test_ifconfig_getnode(self):
node = uuid._ifconfig_getnode()
if node is not None:
self.check_node(node, 'ifconfig')
示例4: test_ifconfig_getnode
# 需要导入模块: import uuid [as 别名]
# 或者: from uuid import _ifconfig_getnode [as 别名]
def test_ifconfig_getnode(self):
node = uuid._ifconfig_getnode()
self.check_node(node, 'ifconfig', True)
示例5: test_ifconfig_getnode
# 需要导入模块: import uuid [as 别名]
# 或者: from uuid import _ifconfig_getnode [as 别名]
def test_ifconfig_getnode(self):
import sys
print >>sys.__stdout__, \
""" WARNING: uuid._ifconfig_getnode is unreliable on many platforms.
It is disabled until the code and/or test can be fixed properly."""
return
import os
if os.name == 'posix':
node = uuid._ifconfig_getnode()
if node is not None:
self.check_node(node, 'ifconfig')