[issue14341] sporadic (?) test_urllib2 failures

2014-09-30 Thread Berker Peksag

Berker Peksag added the comment:

test_method_deprecations has been removed in 
https://hg.python.org/cpython/rev/b5980b1171d0. Closing this as out of date.

--
nosy: +berker.peksag
resolution:  - out of date
stage: needs patch - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14341
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14341] sporadic (?) test_urllib2 failures

2014-05-13 Thread Stefan Krah

Changes by Stefan Krah stefan-use...@bytereef.org:


--
nosy:  -skrah

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14341
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14341] sporadic (?) test_urllib2 failures

2012-04-11 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 751c7b81f6ee by Senthil Kumaran in branch 'default':
use assertWarns instead of check_warnings - Issue14341
http://hg.python.org/cpython/rev/751c7b81f6ee

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14341
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14341] sporadic (?) test_urllib2 failures

2012-04-11 Thread Senthil Kumaran

Senthil Kumaran sent...@uthcode.com added the comment:

Hi Antoine, 

I saw that check_warnings was commonly used ( and perhaps I had used to earlier 
without any problems) and overlooked assertWarns. But I think, it is good to 
remove support.check_warnings dependency here and just use assertWarnings.  Let 
me see if this squashes that sporadic failures in builldbots.

I think, the test_http_cookiejar and test_urllib2 dependency (if any) should 
also be looked at irrespective of this. I shall check that.

Thanks,
Senthil

Thanks.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14341
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14341] sporadic (?) test_urllib2 failures

2012-04-10 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

How about silencing the AssertionError until a better solution
is found? The patch works here.

--
keywords: +patch
Added file: http://bugs.python.org/file25173/issue14341.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14341
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14341] sporadic (?) test_urllib2 failures

2012-04-10 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Well, the point of the test is to check that the warnings are issued, so 
silencing them kind of defeats it.
Senthil, why did you use check_warning instead of assertWarns?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14341
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14341] sporadic (?) test_urllib2 failures

2012-04-06 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

If one changes the stacklevel in the DeprecationWarnings in the library to '2' 
instead of '1' (I believe it should be '2'), then an interesting array of 
deprecation warnings are issued...including from cookiejar code.

Most of them are in the urllib2 tests, though, and obviously they aren't being 
correctly protected.

I'm not sure what is causing the deprecation test to sometimes succeed and 
sometimes fail, though.  Running python -m unittest.test_urllib2 consistently 
fails for me without the 1-2 change, and consistently passes (but with more 
warnings) with it.

--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14341
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14341] sporadic (?) test_urllib2 failures

2012-04-06 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

Running test_http_cookiejar and test_urllib2 in succession always
fails here. The same thing occurs when running test_urllib2
twice:

$ ./python -m test test_http_cookiejar test_urllib2
[1/2] test_http_cookiejar
[2/2] test_urllib2
test test_urllib2 failed -- Traceback (most recent call last):
  File /home/stefan/pydev/cpython/Lib/test/test_urllib2.py, line 628, in 
test_method_deprecations
req.get_host()
  File /home/stefan/pydev/cpython/Lib/contextlib.py, line 54, in __exit__
next(self.gen)
  File /home/stefan/pydev/cpython/Lib/test/support.py, line 766, in 
_filterwarnings
missing[0])
AssertionError: filter ('', DeprecationWarning) did not catch any warning

1 test OK.
1 test failed:
test_urllib2

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14341
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14341] sporadic (?) test_urllib2 failures

2012-04-02 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

This occurs quite frequently now. In the latest build four bots
show this error.

http://www.python.org/dev/buildbot/all/builders/x86%20Ubuntu%20Shared%203.x/builds/5605/steps/test/logs/stdio
http://www.python.org/dev/buildbot/all/builders/AMD64%20FreeBSD%209.0%203.x/builds/2158/steps/test/logs/stdio
http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/6294/steps/test/logs/stdio
http://www.python.org/dev/buildbot/all/builders/AMD64%20Fedora%20without%20threads%203.x/builds/1911/steps/test/logs/stdio

--
nosy: +skrah

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14341
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14341] sporadic (?) test_urllib2 failures

2012-03-16 Thread Antoine Pitrou

New submission from Antoine Pitrou pit...@free.fr:

==
FAIL: test_method_deprecations (test.test_urllib2.OpenerDirectorTests)
--
Traceback (most recent call last):
  File 
/home/buildbot/buildarea/3.x.ochtman-gentoo-amd64/build/Lib/test/test_urllib2.py,
 line 628, in test_method_deprecations
req.get_host()
  File 
/home/buildbot/buildarea/3.x.ochtman-gentoo-amd64/build/Lib/contextlib.py, 
line 54, in __exit__
next(self.gen)
  File 
/home/buildbot/buildarea/3.x.ochtman-gentoo-amd64/build/Lib/test/support.py, 
line 776, in _filterwarnings
missing[0])
AssertionError: filter ('', DeprecationWarning) did not catch any warning

--
assignee: orsenthil
components: Library (Lib), Tests
messages: 156111
nosy: orsenthil, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: sporadic (?) test_urllib2 failures
type: behavior
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14341
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com