New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_uuid test_ifconfig_getnode fails with Temporary failure in name resolution #67359
Comments
Building 3.4.2, running testsuite on linux, [365/388] test_uuid
Warning -- sys.path was modified by test_site
test test_uuid failed -- Traceback (most recent call last):
File "/builddir/build/BUILD/Python-3.4.2/Lib/test/test_uuid.py", line 318, in test_ifconfig_getnode
node = uuid._ifconfig_getnode()
File "/builddir/build/BUILD/Python-3.4.2/Lib/uuid.py", line 356, in _ifconfig_getnode
ip_addr = socket.gethostbyname(socket.gethostname())
socket.gaierror: [Errno -3] Temporary failure in name resolution Note that "Use of the 'network' resource not enabled" |
That traceback doesn't match the uuid.py source, nor has _ifconfig_getnode been modified for quite some time. A line like your traceback says is in _ifconfig_getnode actually appears in _arp_getnode. The arp_getnode test would presumably have the same problem, since it is also not protected by either; however, that call to socket in uuid.py, which is the only such call in the file, is protected by a try/except for OSError, so no error should be bubbling up from it. Can you investigate further, please? |
The source code matches 3.4.2 tarball exactly. There is no arp_getnode test that I can see. 316 @unittest.skipUnless(os.name == 'posix', 'requires Posix') 346def _ifconfig_getnode(): And I do not see any try/except protections around it. |
I guess this is related to http://bugs.python.org/issue17293 however I get a test-suite fail / exception there with 3.4.2 on Linux. |
Ah, I see what happened. Serhiy split _ifconfig_getnode, so when I did an hg annotate it looked like _ifconfig_getnode was untouched, but in fact it had been split to create the _arp_getnode function. So, this report is out of date, this has already been fixed in 3.4. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: