summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Clean up the "all" support for -u.Fred Drake2002-04-111-1/+2
|
* Since xmllib is deprecated now, suppress the DeprecationWarning its testTim Peters2002-04-111-1/+5
| | | | module necessarily raises.
* Ignore more deprecation warnings.Tim Peters2002-04-111-4/+6
|
* Stop sucking up xmllib -- it's deprecated.Tim Peters2002-04-111-1/+0
|
* I don't expect test_email_codecs to run on Windows.Tim Peters2002-04-111-0/+1
|
* Added the resource name "all" to enable all of the optional resource uses.Fred Drake2002-04-111-2/+11
| | | | This is nice for use with "make TESTOPTS='-u all' test".
* Improve coverage of Objects/weakrefobject.c.Fred Drake2002-04-111-0/+16
|
* Sync'ing with standalone email package 2.0.1. This adds support forBarry Warsaw2002-04-104-48/+772
| | | | | | | | | non-us-ascii character sets in headers and bodies. Some API changes (with DeprecationWarnings for the old APIs). Better RFC-compliant implementations of base64 and quoted-printable. Updated test cases. Documentation updates to follow (after I finish writing them ;).
* Added test case for UTF-8 encoding bug #541828.Marc-André Lemburg2002-04-101-0/+16
|
* Use random instead of whrandomAndrew M. Kuchling2002-04-101-3/+3
|
* - Changed new-style class instantiation so that when C's __new__Guido van Rossum2002-04-061-0/+22
| | | | | method returns something that's not a C instance, its __init__ is not called. [SF bug #537450]
* Add tests for binary pickles.Guido van Rossum2002-04-051-0/+12
|
* Implement an idea by Paul Rubin:Guido van Rossum2002-04-051-0/+6
| | | | | | | | Change pickling format for bools to use a backwards compatible encoding. This means you can pickle True or False on Python 2.3 and Python 2.2 or before will read it back as 1 or 0. The code used for pickling bools before would create pickles that could not be read in previous Python versions.
* Add test case for SF bug 534347.Guido van Rossum2002-04-041-0/+8
|
* Oops. Here are the new files. My apologies.Guido van Rossum2002-04-031-0/+228
|
* Add the 'bool' type and its values 'False' and 'True', as described inGuido van Rossum2002-04-039-172/+172
| | | | | | | | | | | | | PEP 285. Everything described in the PEP is here, and there is even some documentation. I had to fix 12 unit tests; all but one of these were printing Boolean outcomes that changed from 0/1 to False/True. (The exception is test_unicode.py, which did a type(x) == type(y) style comparison. I could've fixed that with a single line using issubtype(x, type(y)), but instead chose to be explicit about those places where a bool is expected. Still to do: perhaps more documentation; change standard library modules to return False/True from predicates.
* Fix bugs:Mark Hammond2002-04-032-0/+39
| | | | | | | | | | | | | | | 457466: popenx() argument mangling hangs python 226766: popen('python -c"...."') tends to hang Fixes argument quoting in w9xpopen.exe for Windows 9x. w9xpopen.exe also never attempts to display a MessageBox when not executed interactively. Added test_popen() test. This test currently just executes "python -c ..." as a child process, and checks that the expected arguments were all recieved correctly by the child process. This test succeeds for me on Win9x, win2k and Linux, and I hope it does for other popen supported platforms too :)
* SF patch 537536 by Phillip J. Eby, fix for SF bug 535444, super()Guido van Rossum2002-04-021-0/+8
| | | | | | broken w/ classmethods. Bugfix candidate.
* Add an experimental mechanism to support extending the pprint formatting.Fred Drake2002-04-021-0/+21
| | | | Partly responds to SF bug #505152.
* Make test_commands work on more systems. This removes much of the dependencyFred Drake2002-04-011-4/+5
| | | | | | | on how a system is configured. This closes SF bug #497160 (which has the patch) and #460613. Bugfix candidate.
* Format strings (tuples,) appropriatelyNeal Norwitz2002-04-012-3/+3
|
* Use attributes appropriatelyNeal Norwitz2002-04-012-2/+2
|
* There is no TestError, use TestFailed appropriatelyNeal Norwitz2002-04-013-10/+10
|
* We expect to skip the new test_mpz on Windows.Tim Peters2002-04-011-1/+5
|
* Get rid of all METH_OLDARGS & PyArg_Parse.Neal Norwitz2002-04-011-0/+90
| | | | | Fix floating point exception if mpz.powm(10, 1, 0) (modulus == 0). Add a test.
* Remove some now-obsolete generator future statements.Tim Peters2002-04-013-12/+4
| | | | | I left the email pkg alone; I'm not sure how Barry would like to handle that.
* Convert file.readinto() to stop using METH_OLDARGS & PyArg_Parse.Neal Norwitz2002-04-011-0/+15
| | | | Add test for file.readinto().
* As part of fixing bug #536241, add a test case for string.zfill() with UnicodeAndrew M. Kuchling2002-03-291-1/+4
|
* Add two tests for string.zfillAndrew M. Kuchling2002-03-291-0/+3
|
* test_trashcan: reword obscure code.Tim Peters2002-03-281-1/+1
| | | | Bugfix candidate.
* New test_traschcan() test in test_gc, which reliably provokes segfaultsTim Peters2002-03-281-0/+29
| | | | | | under 2.0, 2.1 and 2.2. Bugfix candidate.
* Add a simple test of the METH_CLASS and METH_STATIC flags for type methods.Fred Drake2002-03-281-0/+30
|
* Add tests for the iterkeys, itervalues and iteritemsWalter Dörwald2002-03-251-0/+29
| | | | methods in dict-proxy objects.
* SF bug 480215: softspace confused in nested printTim Peters2002-03-241-0/+14
| | | | | | | | | | This fixes the symptom, but PRINT_ITEM has no way to know what (if anything) PyFile_WriteObject() writes unless the object being printed is a string. When the object isn't a string, this fix retains the guess that softspace should be set after PyFile_WriteObject(). We might want to say that it's the job of filelike-object write methods to leave the file's softspace in the correct state. That would probably be better -- but everyone relies on PRINT_ITEM to guess for them now.
* add test for InvalidURLSkip Montanaro2002-03-241-0/+2
|
* add test of InvalidURLSkip Montanaro2002-03-241-0/+10
|
* Add more tests for built-in types. Add tests for buffer objects.Neil Schemenauer2002-03-242-0/+119
| | | | Closes SF patch 494871.
* added RFC 2396 tests from Aaron Swartz included in bug # 450225.Skip Montanaro2002-03-231-74/+116
| | | | converted to use unittest
* no longer needed - converted test_urlparse.py to use unittestSkip Montanaro2002-03-231-46/+0
|
* SF bug 533234: tm_isdst > 1 Passed to strftime.Tim Peters2002-03-231-0/+23
| | | | | | | | | | | One more time on this turkey, but duller instead of cleverer. Curious: The docs say __getslice__ has been deprecated since 2.0, but list.__getitem__ still doesn't work if you pass it a slice. This makes it a lot clearer to emulate a list by *being* a list <wink>. Bugfix candidate. Michael, just pile this patch on top of the others that went by -- no need to try to pick these apart.
* Add a simple test suite for netrc.py, and remove it from test_sundryAndrew M. Kuchling2002-03-222-1/+43
|
* Do not insert characters for unicode-escape decoders if the error modeMartin v. Löwis2002-03-211-0/+8
| | | | is "ignore". Fixes #529104.
* amk's fix attached toMichael W. Hudson2002-03-182-0/+23
| | | | [ 516299 ] urlparse can get fragments wrong
* Fix for SF bug 528132 (Armin Rigo): classmethod().__get__() segfaultGuido van Rossum2002-03-181-0/+5
| | | | | | | | | | | The proper fix is not quite what was submitted; it's really better to take the class of the object passed rather than calling PyMethod_New with NULL pointer args, because that can then cause other core dumps later. I also added a testcase for the fix to classmethods() in test_descr.py. I've already applied this to the 2.2 branch.
* initial test_anydbm module - based on test_dumbdbm.pySkip Montanaro2002-03-181-0/+96
|
* restructure a bit to not rely on test case execution orderingSkip Montanaro2002-03-171-4/+28
| | | | add test case for bug #482460
* Skip test_longexp for MacPython on Mac OS X. It triggers a pathological ↵Jack Jansen2002-03-151-1/+5
| | | | | | realloc slowdown. Some tests with shorter expressions lead me to the conclusion that it will eventually finish, but it may take a few weeks:-) 2.2.1 candidate.
* added test case to catch index errors with _localized_name classSkip Montanaro2002-03-151-0/+4
|
* first cut at skip-list for hp-ux 11 based upon input from Bill Lawler at HP.Skip Montanaro2002-03-151-0/+30
|
* "Fix" for SF bug #520644: __slots__ are not pickled.Guido van Rossum2002-03-141-0/+89
| | | | | | | | | | | As promised in my response to the bug report, I'm not really fixing it; in fact, one could argule over what the proper fix should do. Instead, I'm adding a little magic that raises TypeError if you try to pickle an instance of a class that has __slots__ but doesn't define or override __getstate__. This is done by adding a bozo __getstate__ that always raises TypeError. Bugfix candidate (also the checkin to typeobject.c, of course).