A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-September/017471.html below:

[Python-Dev] More test problems

[Python-Dev] More test problemsGuido van Rossum guido@python.org
Mon, 10 Sep 2001 21:42:33 -0400
> I now have a new problem, one that I've seen in the past but always
> seems to go away all by itself. Urllib2 will fail when I run the whole
> regrtest suite:
> >>> import test.regrtest
> >>> test.regrtest.main()
> test_grammar
> [... many lines deleted]
> test_urllib2
> test test_urllib2 crashed -- exceptions.AttributeError: 'module'
> object has no attribute 'error'
> 
> But if I run only the urllib2 test in verbose mode it works fine:
> >>> sys.argv = ['regrtest.py', '-v', 'test_urllib2']
> >>> test.regrtest.main()
> test_urllib2
> test_urllib2
> 1 test OK.
> CAUTION:  stdout isn't compared in verbose mode:  a test
> that passes in verbose mode may fail without it.
> 
> Does anyone know where I could start looking for this one?

Not beyond what Martin suggested.  One of the prior tests probably
screws you.  Any tests *fail* before?  I have done bisection of the
set of test modules -- tedious, but effective: make an explicit list
of the previous tests, and each time try with half of them removed
until the result changes.

--Guido van Rossum (home page: http://www.python.org/~guido/)




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4