[Python-Dev] Converting tests to unittest/doctest?

2007-12-21 Thread Titus Brown
Hi all,

a bit of grep'ping and personal examination discovered the following
tests in trunk/ that could be converted to unittest or doctests.  Any
thoughts, pro or con?

(I understand from Brett that the goal is to eradicate old-style
tests, by which I think he means tests that do not use unittest or
doctest.  There are some good reasons to switch to using unittests, not
least of which is that you can use a variety of frameworks (nose,
py.test) to do value-added wrapping and management of such tests.)

Suggestions for additional things to test or tests to modify, clean up,
or extend and expand are welcome.

thanks,
--titus

---

test_select
test_contains
test_crypt
test_dbm
test_dummy_threading
test_errno
test_getargs
test_gdbm
test_pep247
test_strftime

test_thread

test_queue

test_fcntl

test_format

test_curses

test_descr

test_funcattrs

test_gdbm

test_socketserver
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Converting tests to unittest/doctest?

2007-12-21 Thread Titus Brown
On Fri, Dec 21, 2007 at 04:02:21PM +0100, Quentin Gallet-Gilles wrote:
- (oops, realized I didn't send it to the list, just to Titus)
- 
- I remember that it was one of the tasks at the Python Sprint at Google last
- summer, so I guess this is a good idea (for GHOP, right ?)

Yep!

- From what remains of the spreadsheet used during the Sprint
- (http://spreadsheets.google.com/ccc?key=pBLWM8elhFAmKbrhhh0ApQApli=1),
- I believe you can add the following tests to your list:
- 
- test_tokenize
- test_cProfile
- test_extcall
- test_logging
- test_profile
- test_thread
- (and maybe test_pep277 that seems to use both unittest and test.test_support
- )

These were already done as part of GHOP, just not all checked in yet --
we're waiting for some contributor agreements.  But thanks, that's
exactly the sort of info I'm looking for!

cheers,
--titus
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com