Commit Graph

4768 Commits

Author SHA1 Message Date
Roger E. Masse e7ee8c3753 Reindented via GvR recomendation ala Bwarsaw cppy-style.el 1996-12-13 15:55:22 +00:00
Guido van Rossum 8d40c843c1 Added quote_plus() and unquote_plus(), to do space/plus substitutions
for form field values.
Also corrected substitution example (the original changed the spelling
of "conolly" to "connolly" :).
1996-12-13 14:48:47 +00:00
Guido van Rossum 0564e12367 Added quote_plus() and unquote_plus(), to do space/plus substitutions
for form field values.
1996-12-13 14:47:36 +00:00
Guido van Rossum fbcfd52a9a Added the example "thin ice" from the extensions manual. 1996-12-13 02:57:25 +00:00
Guido van Rossum d16ddb610a Typos reported by Tamito Kajiyama. 1996-12-13 02:38:17 +00:00
Barry Warsaw f630f6b93d Renamed, and scrutinized for missed potential error conditions.
Alas, I don't have an Indigo, so I could not even compile this.
1996-12-13 01:24:29 +00:00
Barry Warsaw e3c0170ba0 Output file for module struct test 1996-12-13 00:25:52 +00:00
Guido van Rossum 27eb14d894 Added support for 4-channel on SGI.
Allow specifying the test file on the command line.
1996-12-13 00:19:56 +00:00
Guido van Rossum 25bcdb0e56 Added QUADRO. 1996-12-13 00:19:15 +00:00
Barry Warsaw 8496d39478 Renamed, however there is no test case. I did test some of the module
out manually, and it does compile, but I'm not sure how to write a
useful portable test case.  Maybe later...
1996-12-13 00:11:04 +00:00
Guido van Rossum 0caa7ec206 Fixed conversion between seconds and milliseconds. 1996-12-12 23:42:20 +00:00
Barry Warsaw 07a0eeceaa A test of the struct module 1996-12-12 23:34:06 +00:00
Barry Warsaw 30695fa3cd Renamed. 1996-12-12 23:32:31 +00:00
Barry Warsaw eb14d61e28 (python-cc-style): typo "c-offset-alist" => "c-offsets-alist" 1996-12-12 22:57:05 +00:00
Barry Warsaw c2feec3378 Renamed, but *not* tested or compiled. I don't even have the STDWIN
library.
1996-12-12 22:48:20 +00:00
Barry Warsaw cb17a465eb Print final report, either all tests OK, or list of failed and missing
tests.
1996-12-12 22:34:26 +00:00
Barry Warsaw 1c92eba2dd Print a more meaningful message when a test's output file wasn't
found.
1996-12-12 22:21:10 +00:00
Barry Warsaw c1cb360683 Reworked to eliminate all potential memory problems, including
deletion of object from list argument during callout to fileno().
1996-12-12 22:16:21 +00:00
Guido van Rossum 32616fbee6 Make sure ok_builtin_modules, ok_dynamic_modules and
builtin_module_names are always tuples.
1996-12-12 21:31:52 +00:00
Guido van Rossum 15d1079dd2 Fixed test_strftime to be silent when called from autotest. 1996-12-12 19:07:19 +00:00
Guido van Rossum 483705c5a9 Added test_strftime (Skip Montanaro). 1996-12-12 19:03:11 +00:00
Guido van Rossum 6cdd7a0433 Add mktime_tz() which turns a date_tz 10-tuple into a standard Unix timestamp. 1996-12-12 18:39:54 +00:00
Guido van Rossum 21be147094 Added remark about time() and sleep()'s subsecond precision.
Added hint about using clock() for benchmarks etc.
Removed non-portable strftime directives and field width, and added a
warning about non-standard features.
1996-12-12 17:59:37 +00:00
Guido van Rossum 3486f27428 Added soundex (sigh) 1996-12-12 17:02:21 +00:00
Guido van Rossum c0967cd4a2 Added a bunch of new winfo options; we should now be up to date with
Tk 4.2.  The new winfo options supported are: mananger, pointerx,
pointerxy, pointery, server, viewable, visualid, visualsavailable.

Also fixed bugs in winfo_colormapfull() and winfo_containing().
1996-12-12 16:43:05 +00:00
Barry Warsaw e4ac0aa618 Several changes... Guido *please* take a look!
1. Renamed

2. Several coding styles were being used here, owing to the multiple
   contributors.  I tried to convert everything to standard "python"
   coding style for indentation, paren and brace placement, etc.

3. There were several potential error conditions that were never being
   checked, and where I saw them, I added checks of return values,
   etc.  I'm pretty sure I got them all.

4. There were some old-style (pre PyArg_ParseTuple) argument
   extraction and these were converted to use PyArg_ParseTuple.

All changes compile and run with the new test_select.py module, at
least on my Solaris/Sparc box.
1996-12-12 00:04:35 +00:00
Barry Warsaw 792c94a320 A test of the select module that is actually reproduceable! 1996-12-11 23:58:46 +00:00
Guido van Rossum 3176bb1df2 Some more tuning of quicksort: use pointers instead of indexing. 1996-12-11 23:57:39 +00:00
Barry Warsaw 042a207061 Output of rgbimg module test 1996-12-11 21:42:38 +00:00
Barry Warsaw 8bc74ceb8b Added test of rgbimg module 1996-12-11 21:41:42 +00:00
Barry Warsaw 66e7f3ac43 minor formatting nit 1996-12-11 21:40:04 +00:00
Barry Warsaw 7bd9fbdea2 Grandly renamed.
Note that since I have no idea how to test this, I didn't write a test
case.  It does seem to at least compile on my system though.
1996-12-11 21:33:16 +00:00
Guido van Rossum dbfed710a1 Be more careful with the shuffling of stdout. 1996-12-11 16:54:54 +00:00
Barry Warsaw 50c5cf132a Renamed. 1996-12-11 16:54:40 +00:00
Barry Warsaw d96dfb72ea Output of the nis and pwd module tests 1996-12-11 16:54:15 +00:00
Barry Warsaw 3d070fb391 Test of the pwd module 1996-12-11 16:53:51 +00:00
Barry Warsaw ebfa2c4417 Added test_pwd 1996-12-11 16:52:56 +00:00
Guido van Rossum 2b6c2faa64 Rewrite without using try-except to break out of two loops. 1996-12-11 16:28:30 +00:00
Barry Warsaw 870d5c67ae Just test one key/value pair for one NIS map. I.e. don't test them
all because it can take a really long time.
1996-12-11 16:07:30 +00:00
Barry Warsaw 3236b334ef test of the nis module 1996-12-11 01:01:38 +00:00
Barry Warsaw 7822681992 added test_nis 1996-12-11 01:01:09 +00:00
Barry Warsaw 1abda0fb12 cat and puste errors 1996-12-11 01:00:46 +00:00
Barry Warsaw 3696c524a4 nis_maplist(): Use check of yp_get_default_domain() return value
that's used in other parts of this module.

nis_maps(): use PyArg_NoArgs().
1996-12-11 00:29:14 +00:00
Barry Warsaw adbf4e66df Renamed, and bug fixed:
Two interesting problems in nis_maplist().  First, it is possible that
clnt_create() will return NULL.  This was being caught, but no Python
error was being set.  I use clnt_spcreateerror() to generate the value
of the exception.

But why would clnt_create() fail?  It's because no server was being
found.  And why was this?  It was because nis_maplist() tried only to
get the NIS master for the first map in the aliases list, which is
passwd.byname, and guess what?  That's the one NIS map CNRI does *not*
export!  So the yp_master() call was failing to return a valid
server.  I now cycle through all the map aliases until I find a valid
master.  If not, a different exception is set.

I'm not sure this is the completely correct way to do all this, but
short of rewriting the entire nismodule.c (to expose the proper API to
Python), it should do the trick.
1996-12-11 00:15:58 +00:00
Guido van Rossum 3f236dee3a Added new quicksort implementation, tailored to sorting arrays of
object pointers.  Should be a bit faster than the C library's qsort(),
and doesn't have the prohibition on recursion that Solaris qsort() has
in the threaded version of their C library.

Thanks to discussions with Tim Peters.
1996-12-10 23:55:39 +00:00
Barry Warsaw 53699e9ec1 Renamed.
Note that there is no test suite for this module, and I don't plan to
write one just now.
1996-12-10 23:23:01 +00:00
Barry Warsaw dde5c70c8a Test output files in their new location 1996-12-10 23:20:09 +00:00
Barry Warsaw e4a252ef88 Directory for test output files: Output => output 1996-12-10 23:19:14 +00:00
Barry Warsaw 2e644a0f86 When run as a script, runs each test and sends results to stdout
(i.e. this restores the old functionality).

Note that if a test couldn't be imported, it is just ignored (and no
warning is printed).
1996-12-10 23:10:39 +00:00
Barry Warsaw 272c00b634 New regression testing harness.
(testall.out): obsolete.  see individual test output files in the
Output directory.

(testall.py): now contains only the list of all tests

(autotest.py): The new testing harness.  Supports -g option to
generate output files instead of verifying; -w option to warn about
non-tested optional modules; additional command line arguments to
generate or test individual tests (useful for generating output file
of new tests).
1996-12-10 19:51:10 +00:00