summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Remove doctest.testmod's deprecated (in 2.4) `isprivate`Tim Peters2006-06-051-48/+9
| | | | argument. A lot of hair went into supporting that!
* "Flat is better than nested."Tim Peters2006-06-051-59/+73
| | | | | | | | | Move the long-winded, multiply-nested -R support out of runtest() and into some module-level helper functions. This makes runtest() and the -R code easier to follow. That in turn allowed seeing some opportunities for code simplification, and made it obvious that reglog.txt never got closed.
* Revert revisions:Tim Peters2006-06-043-59/+0
| | | | | | | | | | | | | | | | 46640 Patch #1454481: Make thread stack size runtime tunable. 46647 Markup fix The first is causing many buildbots to fail test runs, and there are multiple causes with seemingly no immediate prospects for repairing them. See python-dev discussion. Note that a branch can (and should) be created for resolving these problems, like svn copy svn+ssh://svn.python.org/python/trunk -r46640 svn+ssh://svn.python.org/python/branches/NEW_BRANCH followed by merging rev 46647 to the new branch.
* Patch #1346214: correctly optimize away "if 0"-style stmtsGeorg Brandl2006-06-041-3/+3
| | | | (thanks to Neal for review)
* Fixes in struct and socket from merge reviews.Martin Blais2006-06-042-19/+19
| | | | | | | | | | | | | - Following Guido's comments, renamed * pack_to -> pack_into * recv_buf -> recv_into * recvfrom_buf -> recvfrom_into - Made fixes to _struct.c according to Neal Norwitz comments on the checkins list. - Converted some ints into the appropriate -- I hope -- ssize_t and size_t.
* Patch #1454481: Make thread stack size runtime tunable.Andrew MacIntyre2006-06-043-0/+59
|
* Whitespace normalization.Tim Peters2006-06-041-2/+1
|
* pprint functions used to sort a dict (by key) if and only ifTim Peters2006-06-021-4/+31
| | | | | | | | | | | the output required more than one line. "Small" dicts got displayed in seemingly random order (the hash-induced order produced by dict.__repr__). None of this was documented. Now pprint functions always sort dicts by key, and the docs promise it. This was proposed and agreed to during the PyCon 2006 core sprint -- I just didn't have time for it before now.
* Fixed struct test to not use unittest.Martin Blais2006-06-021-78/+84
|
* Fix memory leak found by valgrind.Neal Norwitz2006-06-021-2/+4
|
* Convert docstrings to comments so regrtest -v prints method namesNeal Norwitz2006-06-021-7/+7
|
* Re-enable a new empty-string test added during the NFS sprint,Tim Peters2006-06-011-6/+1
| | | | | | but disabled then because str and unicode strings gave different results. The implementations were repaired later during the sprint, but the new test remained disabled.
* [ 1497053 ] Let dicts propagate the exceptions in user __eq__().Armin Rigo2006-06-013-49/+58
| | | | [ 1456209 ] dictresize() vulnerability ( <- backport candidate ).
* Some code style tweaks, and remove apply.Georg Brandl2006-06-011-63/+67
|
* On 64-bit platforms running test_struct after test_tarfile would failNeal Norwitz2006-05-311-0/+6
| | | | since the deprecation warning wouldn't be raised.
* Whitespace normalization.Tim Peters2006-05-301-4/+4
|
* changed count to return 0 for slices outside the source stringFredrik Lundh2006-05-301-1/+2
|
* Change wrapping terminology to overflow maskingBob Ippolito2006-05-301-3/+3
|
* changed find/rfind to return -1 for matches outside the source stringFredrik Lundh2006-05-301-0/+8
|
* Convert test_exceptions to unittest.Georg Brandl2006-05-302-349/+287
|
* Do the check for no keyword arguments in __init__ so thatGeorg Brandl2006-05-301-1/+1
| | | | subclasses of Exception can be supplied keyword args
* Disallow keyword args for exceptions.Georg Brandl2006-05-301-0/+7
|
* Don't fail if the (sub)pkgname already exist.Neal Norwitz2006-05-301-0/+3
|
* Add a test case for exception pickling. args is never NULL.Georg Brandl2006-05-301-0/+13
|
* deprecated_err(): Stop bizarre warning messages when the testsTim Peters2006-05-301-2/+6
| | | | | | | | | | | are run in the order: test_genexps (or any other doctest-based test) test_struct test_doctest The `warnings` module needs an advertised way to save/restore its internal filter list.
* struct: modulo math plus warning on all endian-explicit formats for ↵Bob Ippolito2006-05-291-11/+36
| | | | compatibility with older struct usage (ugly)
* fixed "abc".count("", 100) == -96 error (hopefully, nobody's relying onFredrik Lundh2006-05-291-0/+8
| | | | the current behaviour ;-)
* Patches #1497027 and #972322: try HTTP digest auth first,Georg Brandl2006-05-291-6/+55
| | | | and watch out for handler name collisions.
* Apply modified version of Collin Winter's patch #1478788Nick Coghlan2006-05-291-3/+3
| | | | | | Renames functional extension module to _functools and adds a Python functools module so that utility functions like update_wrapper can be added easily.
* A clearer error message when passing -R to regrtest.py withArmin Rigo2006-05-281-0/+3
| | | | release builds of Python.
* Patch #1496206: urllib2 PasswordMgr ./. default portsGeorg Brandl2006-05-281-3/+51
|
* ("Forward-port" of r46506)Armin Rigo2006-05-285-9/+11
| | | | | | | | | | | | | | Remove various dependencies on dictionary order in the standard library tests, and one (clearly an oversight, potentially critical) in the standard library itself - base64.py. Remaining open issues: * test_extcall is an output test, messy to make robust * tarfile.py has a potential bug here, but I'm not familiar enough with this code. Filed in as SF bug #1496501. * urllib2.HTTPPasswordMgr() returns a random result if there is more than one matching root path. I'm asking python-dev for clarification...
* Patch #1080727: add "encoding" parameter to doctest.DocFileSuiteGeorge Yoshida2006-05-282-6/+65
| | | | Contributed by Bjorn Tillenius.
* The cheery optimism of old age.Tim Peters2006-05-271-13/+1
|
* More random thrashing trying to understand spuriousTim Peters2006-05-271-1/+13
| | | | Windows failures. Who's keeping a bz2 file open?
* Conversion of exceptions over from faked-up classes to new-style C types.Richard Jones2006-05-274-85/+89
|
* Fix up struct docstrings, add struct.pack_to function for symmetryBob Ippolito2006-05-271-0/+22
|
* Patch 1494554: Update numeric properties to Unicode 4.1.Martin v. Löwis2006-05-271-2/+2
|
* enable all of the struct tests, use ssize_t, fix some whitespaceBob Ippolito2006-05-261-1/+1
|
* needspeed: rpartition documentation, tests, and a bug fixes.Fredrik Lundh2006-05-261-2/+17
| | | | feel free to add more tests and improve the documentation.
* Test for more edge strip cases; leading and trailing separator gets removedAndrew Dalke2006-05-261-0/+2
| | | | even with strip(..., 0)
* Explicitly close files. I'm trying to stop the frequent spurious test_tarfileTim Peters2006-05-261-9/+32
| | | | | | failures on Windows buildbots, but it's hard to know how since the regrtest failure output is useless here, and it never fails when a buildbot slave runs test_tarfile the second time in verbose mode.
* Use open() to open files (was using file()).Tim Peters2006-05-261-10/+10
|
* fix #1229380 No struct.pack exception for some out of range integersBob Ippolito2006-05-261-3/+5
|
* Added more rstrip tests, including for prealloc'ed arraysAndrew Dalke2006-05-261-1/+54
|
* Test cases for off-by-one errors in string split with multicharacter pattern.Andrew Dalke2006-05-261-0/+2
|
* I like tests.Andrew Dalke2006-05-261-0/+32
| | | | | | | The new split functions use a preallocated list. Added tests which exceed the preallocation size, to exercise list appends/resizes. Also added more edge case tests.
* Whitespace normalization.Tim Peters2006-05-261-2/+1
|
* Support for buffer protocol for socket and struct.Martin Blais2006-05-262-26/+92
| | | | | | | | | | * Added socket.recv_buf() and socket.recvfrom_buf() methods, that use the buffer protocol (send and sendto already did). * Added struct.pack_to(), that is the corresponding buffer compatible method to unpack_from(). * Fixed minor typos in arraymodule.
* Added split whitespace checks for characters other than space.Andrew Dalke2006-05-261-0/+1
|