[issue22478] tests for urllib2net are in bad shapes

2014-09-24 Thread Senthil Kumaran
Senthil Kumaran added the comment: The buildbots are not showing this error too. I suggest you reset your local copy with the pristine one from remote, do a make distclean; ./configure; make and then run the tests. -- assignee: -> orsenthil resolution: -> works for me stage: -> reso

[issue22478] tests for urllib2net are in bad shapes

2014-09-24 Thread Senthil Kumaran
Senthil Kumaran added the comment: I suspect that you have your interpreters confused. (For e.g, I see 3.4 run against the trunk and the error messages are leading me to believe that 2.7 version in run on 3 code). Or your local copy is not in right shape. I tested it on 3.4 and cpython defaul

[issue22478] tests for urllib2net are in bad shapes

2014-09-24 Thread Ned Deily
Changes by Ned Deily : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue22478] tests for urllib2net are in bad shapes

2014-09-24 Thread karl
karl added the comment: Ah! the User-Agent (or anything which is in unredirected_hdrs) will not be updated if it has already been set once. https://hg.python.org/cpython/file/064f6baeb6bd/Lib/urllib/request.py#l1154 >>> headers = dict(request.unredirected_hdrs) >>> headers {'User-agent': 'Pyt

[issue22478] tests for urllib2net are in bad shapes

2014-09-24 Thread karl
karl added the comment: ok let's see → ./python.exe -m unittest -v Lib.test.test_urllib2net.OtherNetworkTests.test_custom_headers test_custom_headers (Lib.test.test_urllib2net.OtherNetworkTests) ... FAIL == FAIL: test_custom_h

[issue22478] tests for urllib2net are in bad shapes

2014-09-24 Thread karl
New submission from karl: → ./python.exe -V Python 3.4.2rc1+ → hg tip changeset: 92532:6dcc96fa3970 tag: tip parent: 92530:ad45c2707006 parent: 92531:8eb4eec8626c user:Benjamin Peterson date:Mon Sep 22 22:44:21 2014 -0400 summary: merge 3.4 (#22459) Whe