A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-January/011887.html below:

[Python-Dev] Re: test_support.py

[Python-Dev] Re: test_support.py [Python-Dev] Re: test_support.pyGuido van Rossum guido@digicool.com
Fri, 19 Jan 2001 13:11:21 -0500
> > Proposal:
> > 
> > (1) change verify() to raise TestFailed;
> > 
> > (2) change test_unicode.py to catch TestFailed instead.
> 
> +1
> 
> Why not simply make TestFailed a subclass of AssertionError ?
> Then we wouldn't have to fear about breaking test code...

No, I'd rather see the two separated.  There can be assert statements
in the modules we're testing, and I'd prefer not to see those caught
by test code that is trying to catch TestFailed.

I'll check this in momentarily.

--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