summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Marc-Andre Lemburg:Guido van Rossum2000-04-111-2/+1
| | | | | Modified .splitlines() tests according to the changes in stringobject.c.
* Marc-Andre Lemburg:Guido van Rossum2000-04-111-2/+1
| | | | | Modified .splitlines() tests according to the changes in unicodeobject.c.
* Christian Tismer: added test to ensure that multiplication commutes.Guido van Rossum2000-04-101-0/+2
| | | | | | [The test is in a slightly odd place, in test_division_2; but it exercises the recent change to long_mult(), and that's all we really ask for. --GvR]
* Use a constant to specify the number of child threads to create.Fred Drake2000-04-101-4/+7
| | | | | | | | | | | Instead of assuming that the number process ids of the threads is the same as the process id of the controlling process, use a copy of the dictionary and check for changes in the process ids of the threads from the thread's process ids in the parent process. This makes the test make more sense on systems which assign a new pid to each thread (i.e., Linux). This doesn't fix the other problems evident with this test on Linux.
* Marc-Andre Lemburg:Guido van Rossum2000-04-101-0/+29
| | | | | | | | * '...%s...' % u"abc" now coerces to Unicode just like string methods. Care is taken not to reevaluate already formatted arguments -- only the first Unicode object appearing in the argument mapping is looked up twice. Added test cases for this to test_unicode.py.
* Marc-Andre Lemburg:Guido van Rossum2000-04-101-1/+58
| | | | * More test cases for test_contains.py.
* Don't be so strict in checking AttributeError -- the error messageGuido van Rossum2000-04-101-2/+2
| | | | recently changed.
* Output from test_zipfile.py.Guido van Rossum2000-04-101-0/+1
|
* Test for zipfile.py, by Jim Ahlstrom.Guido van Rossum2000-04-101-0/+26
|
* 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
|