我们从Python开源项目中,提取了以下8个代码示例,用于说明如何使用uuid._unixdll_getnode()。
def test_unixdll_getnode(self): import sys import os if importable('ctypes') and os.name == 'posix': try: # Issues 1481, 3581: _uuid_generate_time() might be None. self.check_node(uuid._unixdll_getnode(), 'unixdll') except TypeError: pass
def test_unixdll_getnode(self): try: # Issues 1481, 3581: _uuid_generate_time() might be None. node = uuid._unixdll_getnode() except TypeError: self.skipTest('requires uuid_generate_time') self.check_node(node)
def test_unixdll_getnode(self): try: # Issues 1481, 3581: _uuid_generate_time() might be None. self.check_node(uuid._unixdll_getnode(), 'unixdll') except TypeError: pass