This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_uuid failure on OpenIndiana
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: pitrou, python-dev, serhiy.storchaka, vstinner
Priority: normal Keywords:

Created on 2014-11-04 14:21 by pitrou, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (4)
msg230626 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2014-11-04 14:21
http://buildbot.python.org/all/builders/AMD64%20OpenIndiana%203.x/builds/8840/steps/test/logs/stdio

testIssue8621 (test.test_uuid.TestUUID) ... ok
test_UUID (test.test_uuid.TestUUID) ... ok
test_exceptions (test.test_uuid.TestUUID) ... ok
test_find_mac (test.test_uuid.TestUUID) ... ok
test_getnode (test.test_uuid.TestUUID) ... ok
test_ifconfig_getnode (test.test_uuid.TestUUID) ... ERROR
test_ipconfig_getnode (test.test_uuid.TestUUID) ... skipped 'requires Windows'
test_netbios_getnode (test.test_uuid.TestUUID) ... skipped 'requires win32wnet'
test_random_getnode (test.test_uuid.TestUUID) ... ok
test_unixdll_getnode (test.test_uuid.TestUUID) ... skipped 'requires ctypes'
test_uuid1 (test.test_uuid.TestUUID) ... skipped 'requires ctypes'
test_uuid3 (test.test_uuid.TestUUID) ... ok
test_uuid4 (test.test_uuid.TestUUID) ... skipped 'requires ctypes'
test_uuid5 (test.test_uuid.TestUUID) ... ok
test_windll_getnode (test.test_uuid.TestUUID) ... skipped 'requires Windows'

======================================================================
ERROR: test_ifconfig_getnode (test.test_uuid.TestUUID)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/test/test_uuid.py", line 319, in test_ifconfig_getnode
    node = uuid._ifconfig_getnode()
  File "/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/uuid.py", line 360, in _ifconfig_getnode
    mac = _find_mac('arp', '-an', [os.fsencode(ip_addr)], lambda i: -1)
NameError: name 'os' is not defined

----------------------------------------------------------------------
Ran 15 tests in 0.211s
msg230687 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2014-11-05 15:49
Patch for issue17293 changes tests so that this bug is visible on Posix. And it fixes this bug itself.
msg230688 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-11-05 16:01
New changeset 16d6c2443131 by Victor Stinner in branch 'default':
Issue #22793, #22637: Add missing "import os" in uuid._ifconfig_getnode()
https://hg.python.org/cpython/rev/16d6c2443131
msg230690 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2014-11-05 16:01
> NameError: name 'os' is not defined

The imports in this module are really weird... But I'm not interested to rework completly the module, so I just fixed this specific issue.
History
Date User Action Args
2022-04-11 14:58:09adminsetgithub: 66982
2014-11-05 16:01:56vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg230690
2014-11-05 16:01:01python-devsetnosy: + python-dev
messages: + msg230688
2014-11-05 15:49:20serhiy.storchakasetmessages: + msg230687
2014-11-04 14:21:43pitroucreate