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-February/012875.html below:

[Python-Dev] Unit testing (again)

[Python-Dev] Unit testing (again) [Python-Dev] Unit testing (again)M.-A. Lemburg mal@lemburg.com
Tue, 13 Feb 2001 23:37:13 +0100
Tim Peters wrote:
> 
> [MAL]
> > Since exception message are not defined anywhere I'd suggest
> > to simply ignore them in the output.
> 
> Virtually nothing about Python's output is clearly defined, and for doc
> purposes I want to capture what Python actually does.

But what it does write to the console changes with every 
release (e.g. just take the repr() changes for strings with 
non-ASCII data)... this simply breaks you test suite every time 
Writing Python programs which work on Python 1.5-2.1 which at 
the same time pass the doctest unit tests becomes impossible.

The regression suite (and most other Python software) catches
exceptions based on the exception class -- why isn't this enough
for your doctest.py checks ?

nit-pickling-ly,
-- 
Marc-Andre Lemburg
______________________________________________________________________
Company:                                        http://www.egenix.com/
Consulting:                                    http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/



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