summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Marc-Andre's third try at this bulk patch seems to work (except thatGuido van Rossum2000-04-053-10/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | his copy of test_contains.py seems to be broken -- the lines he deleted were already absent). Checkin messages: New Unicode support for int(), float(), complex() and long(). - new APIs PyInt_FromUnicode() and PyLong_FromUnicode() - added support for Unicode to PyFloat_FromString() - new encoding API PyUnicode_EncodeDecimal() which converts Unicode to a decimal char* string (used in the above new APIs) - shortcuts for calls like int(<int object>) and float(<float obj>) - tests for all of the above Unicode compares and contains checks: - comparing Unicode and non-string types now works; TypeErrors are masked, all other errors such as ValueError during Unicode coercion are passed through (note that PyUnicode_Compare does not implement the masking -- PyObject_Compare does this) - contains now works for non-string types too; TypeErrors are masked and 0 returned; all other errors are passed through Better testing support for the standard codecs. Misc minor enhancements, such as an alias dbcs for the mbcs codec. Changes: - PyLong_FromString() now applies the same error checks as does PyInt_FromString(): trailing garbage is reported as error and not longer silently ignored. The only characters which may be trailing the digits are 'L' and 'l' -- these are still silently ignored. - string.ato?() now directly interface to int(), long() and float(). The error strings are now a little different, but the type still remains the same. These functions are now ready to get declared obsolete ;-) - PyNumber_Int() now also does a check for embedded NULL chars in the input string; PyNumber_Long() already did this (and still does) Followed by: Looks like I've gone a step too far there... (and test_contains.py seem to have a bug too). I've changed back to reporting all errors in PyUnicode_Contains() and added a few more test cases to test_contains.py (plus corrected the join() NameError).
* Mark Hammond:Fred Drake2000-04-051-0/+2
| | | | | | This patch fixes the mmap module on Windows 9x. Also updates the mmap test to remove the test file.
* UserString class from Peter Funk <pf@artcom-gmbh.de>.Fred Drake2000-04-032-0/+228
|
* Untabified file to fix problems reported by tabnannyAndrew M. Kuchling2000-04-021-17/+17
|
* Mark Hammond: Uncomment call to delete test data when done.Fred Drake2000-04-011-1/+1
|
* Added test case output for pyexpat moduleAndrew M. Kuchling2000-03-311-0/+31
|
* Added test case for pyexpat module that tries to exercise all the handlersAndrew M. Kuchling2000-03-311-0/+107
|
* Mark Hammond: Ooops - even though Win32 handles the same args, thereGuido van Rossum2000-03-311-4/+1
| | | | was a superfluous check for the platform.
* Improved test, by Mark Hammond, for Win32.Guido van Rossum2000-03-311-11/+10
|
* robustify UserList constructor -- will now accept any sequenceJeremy Hylton2000-03-311-0/+11
| | | | add test cases for non-UserList class, tuple, & string
* Two fixes for extended call syntax:Jeremy Hylton2000-03-302-0/+48
| | | | | | | If a non-tuple sequence is passed as the *arg, convert it to a tuple before checking its length. If named keyword arguments are used in combination with **kwargs, make a copy of kwargs before inserting the new keys.
* Output for simple test case for mmap on Unix; someone needs to write aAndrew M. Kuchling2000-03-301-0/+0
| | | | Win32 test case.
* Added simple test case for mmap on Unix; someone needs to write aAndrew M. Kuchling2000-03-301-0/+69
| | | | Win32 test case
* fix previous checkinJeremy Hylton2000-03-283-24/+8
|
* add test cases for Greg Ewing's extended call syntax patchJeremy Hylton2000-03-284-2/+174
|
* Mark Hammond: test suite for new winreg module.Guido van Rossum2000-03-282-0/+151
|
* Marc-Andre Lemburg:Guido van Rossum2000-03-284-46/+54
| | | | | | | | | | | | | | | The attached patch set includes a workaround to get Python with Unicode compile on BSDI 4.x (courtesy Thomas Wouters; the cause is a bug in the BSDI wchar.h header file) and Python interfaces for the MBCS codec donated by Mark Hammond. Also included are some minor corrections w/r to the docs of the new "es" and "es#" parser markers (use PyMem_Free() instead of free(); thanks to Mark Hammond for finding these). The unicodedata tests are now in a separate file (test_unicodedata.py) to avoid problems if the module cannot be found.
* Marc-Andre Lemburg:Guido van Rossum2000-03-242-1/+30
| | | | | | | | | | Attached you find the latest update of the Unicode implementation. The patch is against the current CVS version. It includes the fix I posted yesterday for the core dump problem in codecs.c (was introduced by my previous patch set -- sorry), adds more tests for the codecs and two new parser markers "es" and "es#".
* Fix the test so that connect() and bind() are called with a singleGuido van Rossum2000-03-241-2/+2
| | | | | | argument: a (host, port) tuple. Like multi-arg append(), multi-arg connect() and bind() may be ruled out!
* Regenerated with test for 'contains'.Guido van Rossum2000-03-241-0/+1
|
* On 17-Mar-2000, Marc-Andre Lemburg said:Barry Warsaw2000-03-202-0/+2
| | | | | | | | | | | | | Attached you find an update of the Unicode implementation. The patch is against the current CVS version. I would appreciate if someone with CVS checkin permissions could check the changes in. The patch contains all bugs and patches sent this week and also fixes a leak in the codecs code and a bug in the free list code for Unicode objects (which only shows up when compiling Python with Py_DEBUG; thanks to MarkH for spotting this one).
* Marc-Andre Lemburg: Add tests for mixed use of char in string.Guido van Rossum2000-03-131-0/+13
|
* Marc-Andre Lemburg: test script for Unicode implementation.Guido van Rossum2000-03-103-10/+338
|
* Add tests for char in string -- including required exceptions forGuido van Rossum2000-03-071-0/+23
| | | | non-char in string.
* test_contains outputGuido van Rossum2000-03-061-0/+1
|
* Test cases for __contains__ code, by Moshe Zadka.Guido van Rossum2000-03-061-0/+41
|
* Test case for fork1() behavior.Guido van Rossum2000-02-252-0/+55
| | | | Only the main thread should survive in the child after a fork().
* Add tests to exercise sequence operations (multiplication, indexing,Andrew M. Kuchling2000-02-231-0/+25
| | | | slicing) using long integers
* Added test for new crc32() function.Guido van Rossum2000-02-161-0/+6
|
* Make this pass the -tt test.Fred Drake2000-02-101-8/+8
|
* Added test case for accessing gsbm database by key after it's closed;Fred Drake2000-02-071-1/+7
| | | | it should raise gdbm.error.
* Revise tests to support str(<long int object>) not appending "L".Fred Drake1999-12-233-15/+21
|
* Test output.Guido van Rossum1999-10-191-0/+28
| | | | | (XXX perhaps a bit too verbose; in particular it is sensitive to all the doc strings.)
* Rewritten -- this now tests the binascii *except* for the binhexGuido van Rossum1999-10-191-44/+85
| | | | module, which is tested by test_binhex.py.
* Test output for test_binhex.py.Guido van Rossum1999-10-191-0/+1
|
* This test really only tests the binhex module.Guido van Rossum1999-10-191-2/+2
| | | | Renamed it and adapted a comment and an error message.
* Add test case for bug just fixed by Stephen Turner.Guido van Rossum1999-07-131-0/+11
|
* added a test for "To: :" patchBarry Warsaw1999-07-121-0/+7
|
* Add the test case provided by Barry Scott for his patch.Guido van Rossum1999-06-151-0/+5
|
* Added a couple of endswith test cases for bugs reported by Timbot.Barry Warsaw1999-06-151-0/+8
| | | | | Also added a short circuit for the regression test suite since CVS insisted on putting this file in the main branch. :(
* Added more tests of joinBarry Warsaw1999-06-141-0/+9
|
* Two extra startswith testsBarry Warsaw1999-06-111-0/+3
|
* Harness can now test object methods directly, if they aren't availableBarry Warsaw1999-06-111-2/+14
| | | | | | in the string module. Add a bunch of new tests for extended startswith/endswith arguments.
* Output for the regression test of the new string methods.Barry Warsaw1999-06-101-0/+3
|
* Regression test for the new string methods.Barry Warsaw1999-06-101-0/+110
|
* Regression test for date format code, by Mike Meyer.Guido van Rossum1999-05-031-0/+21
| | | | (I tweaked it slightly so examples are allowed to have no date too.)
* Added test case that includes a comma in the full name. This testsFred Drake1999-04-281-0/+7
| | | | | for an old bug that's been gone a while, but was still documented until a few minutes from now.
* Daniel Neri: OpenBSD is just as BSD'ish as the other BSD's ;-)Guido van Rossum1999-04-191-1/+2
|
* # Bah. The same problem occurred a second time.Guido van Rossum1999-04-081-1/+1
|
* On Windows, we suddenly find, strftime() may return "" for anGuido van Rossum1999-04-081-1/+1
| | | | | | | unsupported format string. (I guess this is because the logic for deciding whether to reallocate the buffer or not has been improved.) This caused the test code to crash on result[0]. Fix this by assuming an empty result also means the format is not supported.