[Patches] [ python-Patches-473187 ] Test script for curses module

noreply@sourceforge.net noreply@sourceforge.net
Mon, 22 Oct 2001 07:47:36 -0700


Patches item #473187, was opened at 2001-10-20 09:14
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=473187&group_id=5470

Category: Library (Lib)
Group: None
Status: Open
>Resolution: Accepted
Priority: 5
Submitted By: A.M. Kuchling (akuchling)
>Assigned to: A.M. Kuchling (akuchling)
Summary: Test script for curses module

Initial Comment:
The attached script is a simple test suite for the curses module.  It doesn't display anything very coherent, but it calls almost all of the functions 
and methods implemented in the module; running it
turned up a few bugs in argument parsing that I've 
already corrected.

The problem is that running it from regrtest
may screw up the terminal and/or erase the output of any previously run test scripts.  (It doesn't do that
on my Linux box, but who knows about other platforms?)
Is that acceptable?  If not, the script could go into Demo/curses, where it wouldn't be automatically run, but would still be available.



----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-10-22 07:47

Message:
Logged In: YES 
user_id=6380

Cool. regrtest patch accepted, go ahead and check in.

----------------------------------------------------------------------

Comment By: A.M. Kuchling (akuchling)
Date: 2001-10-22 07:42

Message:
Logged In: YES 
user_id=11375

Nifty!  Attached is a patch to regrtest.py that adds 
a curses resource.  With this change, I'd be happy adding 
the module to Lib/test.



----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2001-10-20 18:00

Message:
Logged In: YES 
user_id=6380

There's another possibility. In 2.2, we have some tests that
are skipped by default but are run when a certain -u option
is specified. The curses test script could be run when "-u
curses" is given to regrtest.py. See e.g. test_socket_ssl.py
for an example of the requires() call.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=473187&group_id=5470