summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Fix variants of deque.extend: d.extend(d) d+=d d.extendleft(d)Raymond Hettinger2009-12-101-0/+11
|
* Skip new imaplib SSL tests if ssl is not available.R. David Murray2009-12-091-14/+31
|
* Issue 5949: fixed IMAP4_SSL hang when the IMAP server response isR. David Murray2009-12-091-3/+163
| | | | | | missing proper end-of-line termination. Patch and tests by Scott Dial. The new tests include a test harness which will make it easier to add additional tests.
* Make test_pipes a little bit more robust.Antoine Pitrou2009-12-081-3/+6
|
* Fix the transient refleaks in test_zipimport_support.Antoine Pitrou2009-12-081-1/+2
| | | | Diagnosis and original patch by Florent Xicluna (flox).
* fix test_parser from tokenizer tweakBenjamin Peterson2009-12-061-4/+4
|
* Issue 7431: use TESTFN in test_linecache instead of trying to create aR. David Murray2009-12-031-36/+32
| | | | | file in the Lib/test directory, which might be read-only for the user running the tests.
* Issue #7333: The `posix` module gains an `initgroups()` function providingAntoine Pitrou2009-12-021-0/+22
| | | | | access to the initgroups(3) C library call on Unix systems which implement it. Patch by Jean-Paul Calderone.
* Issue #4482: Add tests for special float value formatting.Eric Smith2009-12-021-0/+35
|
* #7419: Fix a crash on Windows in locale.setlocale() when the categoryAmaury Forgeot d'Arc2009-12-011-0/+11
| | | | is outside the allowed range.
* Issue 7410: deepcopy of itertools.count resets the countRaymond Hettinger2009-11-301-0/+9
|
* Issue #3382: Make '%F' and float.__format__('F') convert results to upper ↵Eric Smith2009-11-293-2/+55
| | | | case. Much of the patch came from Mark Dickinson.
* Issue #1515: Enable use of deepcopy() with instance methods. Patch by ↵Antoine Pitrou2009-11-281-0/+11
| | | | Robert Collins.
* Issue #6508: Add posix.{getresuid,getresgid,setresuid,setresgid}.Martin v. Löwis2009-11-271-0/+42
|
* Issue #6845: Add restart support for binary upload in ftplib. TheAntoine Pitrou2009-11-271-1/+27
| | | | | | | `storbinary()` method of FTP and FTP_TLS objects gains an optional `rest` argument. Patch by Pablo Mouzo. (note: the patch also adds a test for the rest argument in retrbinary())
* When open_urlresource() fails, HTTPException is another possible errorAntoine Pitrou2009-11-262-2/+4
|
* Issue #5788: `datetime.timedelta` objects get a new `total_seconds()` method ↵Antoine Pitrou2009-11-251-0/+7
| | | | | | returning the total number of seconds in the duration. Patch by Brian Quinlan.
* Issue 7128: Removed reference to the non-existent copyreg module.Alexandre Vassalotti2009-11-241-0/+10
| | | | | | | | | The reference to copyreg was a unnoticed leftover from the compatibility support for the grand renaming of the standard library in Python 3. The compatibility support was reverted in r63493, but not completely as this patch shows. Based on a patch by Amaury Forgeot d'Arc.
* Issue #7117: Update float formatting testcases to match those in py3k.Mark Dickinson2009-11-241-21/+21
|
* comment out test added in r76438, which caused refleaksJesse Noller2009-11-241-18/+18
|
* round(0, "ermintrude") succeeded instead of producing a TypeError. Fix this.Mark Dickinson2009-11-241-0/+5
|
* Issue #7117, continued: Remove substitution of %g-style formatting forMark Dickinson2009-11-231-4/+19
| | | | | %f-style formatting, which used to occur at high precision. Float formatting should now be consistent between 2.7 and 3.1.
* Remove restriction on precision when formatting floats. This is theMark Dickinson2009-11-231-8/+1
| | | | | first step towards removing the %f -> %g switch (see issues 7117, 5859).
* Fix for issue1488943 - difflib.Differ() doesn't always add hints for tabSenthil Kumaran2009-11-231-0/+8
| | | | characters.
* Add a testcase that checks if the TarFile constructor successfullyLars Gustäbel2009-11-231-0/+18
| | | | closes the internal file object in case of an error (issue #7341).
* Issue #6123: Fix opening empty archives and files.Lars Gustäbel2009-11-221-5/+80
| | | | | | | | | | | | | | | | | | | | | | | (Note that an empty archive is not the same as an empty file. An empty archive contains no members and is correctly terminated with an EOF block full of zeros. An empty file contains no data at all.) The problem was that although tarfile was able to create empty archives, it failed to open them raising a ReadError. On the other hand, tarfile opened empty files without error in most read modes and presented them as empty archives. (However, some modes still raised errors: "r|gz" raised ReadError, but "r:gz" worked, "r:bz2" even raised EOFError.) In order to get a more fine-grained control over the various internal error conditions I now split up the HeaderError exception into a number of meaningful sub-exceptions. This makes it easier in the TarFile.next() method to react to the different conditions in the correct way. The visible change in its behaviour now is that tarfile will open empty archives correctly and raise ReadError consistently for empty files.
* issue6615: Additional test for logging support in multiprocessingJesse Noller2009-11-211-0/+20
|
* Issue #7272: Add configure test to detect whether sem_open worksMark Dickinson2009-11-201-1/+1
| | | | | | properly, and use this to skip test_multiprocessing on platforms where sem_open raises a signal. This should fix some FreeBSD buildbot failures for test_multiprocessing.
* improve several corner cases related with argument names in parenthesisBenjamin Peterson2009-11-192-1/+17
| | | | | | | | | - Fix #7362: give a good error message for parenthesized arguments with defaults. - Add a py3k warning for any parenthesized arguments since those are not allowed in Py3. This warning is not given in tuple unpacking, since that incurs the tuple unpacking warning.
* #5037 proxy __unicode__ correctlyBenjamin Peterson2009-11-191-0/+11
|
* Issue #7117, continued: Change round implementation to use the ↵Mark Dickinson2009-11-181-1/+139
| | | | | | | | correctly-rounded string <-> float conversions; this makes sure that the result of the round operation is correctly rounded, and hence displays nicely using the new float repr.
* Correctly escape arbitrary error message text in the runpy unit testsNick Coghlan2009-11-181-2/+2
|
* Allow for backslashes in file paths passed to the regex engineNick Coghlan2009-11-161-0/+2
|
* Account for another cache when hunting ref leaksNick Coghlan2009-11-161-3/+16
|
* Issue #2054: ftplib now provides an FTP_TLS class to do secure FTP usingAntoine Pitrou2009-11-151-5/+213
| | | | TLS or SSL. Patch by Giampaolo Rodola'.
* Issue #4969: The mimetypes module now reads the MIME database fromAntoine Pitrou2009-11-151-1/+25
| | | | the registry under Windows. Patch by Gabriel Genellina.
* Avoid signed overflow in some xrange calculations, and extendMark Dickinson2009-11-151-0/+68
| | | | | | xrange tests to cover some special cases that caused problems in py3k. This is a partial backport of r76292-76293 (see issue #7298.)
* Issue #6816: expose the zipfile and directory execution mechanism to Python ↵Nick Coghlan2009-11-155-163/+309
| | | | code via the runpy module. Also consolidated some script execution functionality in the test harness into a helper module and removed some implementation details from the runpy module documentation.
* Remove 'g' from regrtest getopt argument string, since there's noR. David Murray2009-11-151-1/+1
| | | | handler for it.
* Issue 7324: add a sanity check to regrtest argument parsing toR. David Murray2009-11-151-0/+4
| | | | catch the case of an option with no handler.
* Issue #7312 (new feature): Add a -F flag to run the selected tests inR. David Murray2009-11-141-27/+50
| | | | | a loop until a test fails. Can be combined with -j. Patch by Antoine Pitrou.
* fix several compile() issues by translating newlines in the tokenizerBenjamin Peterson2009-11-123-7/+16
|
* Issue #7295: Do not use a hardcoded file name in test_tarfile.Antoine Pitrou2009-11-111-7/+3
|
* Issue #7197: Allow unittest.TextTestRunner objects to be pickled andAntoine Pitrou2009-11-101-1/+15
| | | | | | | unpickled. This fixes crashes under Windows when trying to run test_multiprocessing in verbose mode. Additionally, Test_TextTestRunner hadn't been enabled in test_unittest.
* Add extra information to a test_signal failure message to aid diagnosis of ↵Mark Dickinson2009-11-091-1/+3
| | | | buildbot failure.
* Issue #7251: Break out round tests for large values into a separateMark Dickinson2009-11-091-3/+22
| | | | | | | test function, and skip that test on Linux/alpha systems with a broken system round function. This should turn the Debian/alpha buildbot green.
* Issue #7282: Fix a memory leak when an RLock was used in a thread otherAntoine Pitrou2009-11-092-4/+15
| | | | | than those started through `threading.Thread` (for example, using `thread.start_new_thread()`.
* Kill a small potential leak in test_threading.Antoine Pitrou2009-11-081-0/+2
| | | | | The leak may not manifest itself if the OS re-uses the same thread ids (I suppose Neal's machine doesn't :-))
* Add test for runpy.run_module package execution and use something other than ↵Nick Coghlan2009-11-071-5/+32
| | | | logging as the example of a non-executable package
* Issue #7270: Add some dedicated unit tests for multi-thread synchronizationAntoine Pitrou2009-11-063-18/+568
| | | | primitives such as Lock, RLock, Condition, Event and Semaphore.