Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 432592

Summary: dev-lang/python-2.7.3-r2 fails tests: test_bad_address IOError not raised
Product: Gentoo Linux Reporter: Marco Ziebell <ziebell_marco>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info output
dev-lang/python-2.7.3-r2 buil.log

Description Marco Ziebell 2012-08-24 14:35:16 UTC
dev-lang/python-2-7.3-r2 failed in test-phase due to multiple Errors. Compiles correct without FEATURES="-test"

Reproducible: Always
Comment 1 Marco Ziebell 2012-08-24 14:35:58 UTC
Created attachment 322102 [details]
emerge --info output
Comment 2 Marco Ziebell 2012-08-24 14:38:53 UTC
Created attachment 322104 [details]
dev-lang/python-2.7.3-r2 buil.log

Build.log of the package, errors complaining /etc/localtime is not set can be ignored
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-08-24 14:55:12 UTC
OSError: out of pty devices
Comment 4 Mike Gilbert gentoo-dev 2012-08-24 15:30:21 UTC
Are you running this in a chroot environment?
Does /dev/ptmx exist?
Comment 5 Mike Gilbert gentoo-dev 2012-08-24 15:36:11 UTC
(In reply to comment #4)

Alternatively, is /dev/pts correctly mounted as a devpts filesystem?
Comment 6 Marco Ziebell 2012-08-24 15:48:39 UTC
There is /dev/ptmx, but I ran mount --bind /dev /mnt/SEC/dev to bind, so it is not mounted correctly. I will rerun the tests.
Comment 7 Marco Ziebell 2012-08-24 16:17:19 UTC
Only this one remains
FAIL: test_bad_address (test.test_urllib2_localnet.TestUrlopen)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-lang/python-2.7.3-r2/work/Python-2.7.3/Lib/test/test_urllib2_localnet.py", line 502, in test_bad_address
    urllib2.urlopen, "http://sadflkjsasf.i.nvali.d./")
AssertionError: IOError not raised
Comment 8 Marien Zwart (RETIRED) gentoo-dev 2012-08-28 12:15:53 UTC
test_urllib2_localnet should not connect to the internet, but it looks like it assumes "localhost" resolves and "sadflkjsasf.i.nvali.d." does not resolve. Can you run something like host "sadflkjsasf.i.nvali.d."? Most likely there's some DNS server in your setup redirecting everything to some search page.

(There's a lengthy comment in there explaining the choice of that name: trailing dot to stop the resolver from appending your local domain, single-char domain because they've determined experimentally .invalid sometimes resolves while these don't).

Not sure if it's worth it to disable this test. I really want to say a setup with a DNS server this broken is, well, broken.
Comment 9 Marco Ziebell 2012-08-30 14:04:01 UTC
Ok, I know what happend.
The ISP Im connected to resolvs any given URL.
I receive a IP-Adress for every adress but if it does not exists I'm not able to connect it!
I've changed my DNS-Server to 8.8.8.8 - Gooogle-DNS - and the test pass!
So it is a problem of my ISP
Comment 10 Mike Gilbert gentoo-dev 2012-08-30 14:51:07 UTC
Great! Thanks for the report.