[Python-Dev] trunk doctests fail to execute with 2.7 alpha (original) (raw)
anatoly techtonik techtonik at gmail.com
Thu Apr 1 16:33:42 CEST 2010
- Previous message: [Python-Dev] trunk doctests fail to execute with 2.7 alpha
- Next message: [Python-Dev] trunk doctests fail to execute with 2.7 alpha
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, Apr 1, 2010 at 3:59 PM, Michael Foord <fuzzyman at voidspace.org.uk> wrote:
Thanks. I've copied test/testsupport.py form Lib into 2.7 alpha directory and it seems to work. Although it doesn't seem good to me to mix test support library with tests themselves. What do you mean by "it doesn't seem good to me to mix test support library with tests themselves"? Do you mean to have it in the same directory - where would you put it? It isn't meant to be a public library, it exists only to support the test framework. In Python 3 it has been renamed support.py, but lives in the same location.
I mean that usually testing tools/libraries are separated from tests itself, as well as data. test_support.py is not only located in the same directory - it is even named in the same way. The test directory looks like a mess with all these aux data files. But it is hard to estimate if it would be worthy to separate testing framework from tests and test data. It may happen that writing and debugging tests become harder, because Python is not locked into some specific usage domain.
-- anatoly t.
- Previous message: [Python-Dev] trunk doctests fail to execute with 2.7 alpha
- Next message: [Python-Dev] trunk doctests fail to execute with 2.7 alpha
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]