summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* New tests for basic behavior of smtplib.SMTP andFacundo Batista2007-07-241-10/+121
| | | | | | | smtpd.DebuggingServer. Change to use global host & port number variables. Modified the 'server' to take a string to send back in order to vary test server responses. Added a test for the reaction of smtplib.SMTP to a non-200 HELO response. [GSoC - Alan McIntyre]
* Try to get rid of spurious failure in test_resource on the Debian buildbots ↵Nick Coghlan2007-07-241-9/+16
| | | | by changing the file size limit before attempting to close the file
* Fix an incompatibility between the -i and -m command line switches as ↵Nick Coghlan2007-07-242-45/+38
| | | | reported on python-dev by PJE - runpy.run_module now leaves any changes it makes to the sys module intact after the function terminates
* Tweak runpy test to do a better job of confirming that sys has been ↵Nick Coghlan2007-07-241-3/+5
| | | | manipulated correctly
* Correctly cleanup sys.modules after executing runpy relative importNick Coghlan2007-07-232-8/+11
| | | | | | tests Restore Python 2.4 ImportError when attempting to execute a package (as imports cannot be guaranteed to work properly if you try it)
* Add explicit relative import tests for runpy.run_moduleNick Coghlan2007-07-221-5/+66
|
* Selectively enable tests for asyncore.readwrite based on the presenceFacundo Batista2007-07-221-81/+77
| | | | | of poll support in the select module (since this is the only case in which readwrite can be called). [GSoC - Alan McIntyre]
* Added a select.select call in the test server loop to make sure theFacundo Batista2007-07-191-5/+7
| | | | | | socket is ready to be read from before attempting a read (this prevents an error 10035 on some Windows platforms). [GSoC - Alan McIntyre]
* Fix failing unicode test caused by change to ast.c at r56441Kurt B. Kaiser2007-07-181-3/+3
|
* SF patch# 1755885 by Kurt Kaiser: show location of Unicode escape errors.Guido van Rossum2007-07-181-0/+6
| | | | (Slightly tweaked for style and refcounts.)
* Prevent asyncore.dispatcher tests from hanging by adding loop countersFacundo Batista2007-07-171-20/+46
| | | | | | to server & client, and by adding asyncore.close_all calls in tearDown. Also choose correct expected logging results based on the value of __debug__ [Alan McIntyre - GSoC]
* Changed the used port and commented out some tests that usesFacundo Batista2007-07-151-72/+82
| | | | | a non documented function that appers to uses resources not present in Windows.
* First version. Includes tests for helper functions: read, write,Facundo Batista2007-07-141-0/+370
| | | | | | _exception, readwrite, closeall, compact_traceback; and for classes dispatcher, dispatcher_with_send, and file_wrapper. [Alan McIntyre - GSoC]
* Avoid exception if there's a stray directory inside a Maildir folder.Andrew M. Kuchling2007-07-142-2/+17
| | | | | | | The Maildir specification doesn't seem to say anything about this situation, and it can happen if you're keeping a Maildir mailbox in Subversion (.svn directories) or some similar system. The patch just ignores directories in the cur/, new/, tmp/ folders.
* In response to this SF bug:Barry Warsaw2007-07-132-0/+23
| | | | | | | | | | [ 1752723 ] email.message_from_string: initial line gets discarded I added a test to assert that when the first line of text passed to message_from_string() contains a leading space, the message ends up with the appropriate FirstHeaderLineIsContinuationDefect on its defects list. The bug is invalid.
* Fix for SF# 1701409: segfault in c_char_p of ctypes. The repr outputThomas Heller2007-07-131-0/+8
| | | | of c_char_p and c_wchar_p has changed as a sideeffect.
* Do not try to load the GLUT library in the ctypes tests. This testThomas Heller2007-07-131-24/+2
| | | | | adds little value, but has a large problem on OS X, as explained in SF# 1581906.
* Add tests for _ctypes.COMError.Thomas Heller2007-07-131-0/+9
|
* Added tests for basic behavior of DateTime, Binary, and Fault classesFacundo Batista2007-07-131-1/+134
| | | | | | and the escape function. Check that marshalling recursive sequences & dicts raises TypeError. Check that marshalling out-of-range ints raises OverflowError [Alan McIntyre - GSoC]
* Patch #1675424: Added tests for uncovered code in the zipfile module.Georg Brandl2007-07-122-7/+135
| | | | | The KeyError raised by Zipfile.getinfo for nonexistent names now has a descriptive message.
* Patch #1731169: clean up expected skips list.Georg Brandl2007-07-121-214/+18
|
* Patch #1673759: add a missing overflow check when formatting floatsGeorg Brandl2007-07-121-3/+17
| | | | with %G.
* Patch #1739696: use code.co_code only if really necessaryGeorg Brandl2007-07-121-4/+3
|
* Patch #1752270, #1750931: complain if urllib2 add_handler calledGeorg Brandl2007-07-122-0/+10
| | | | without handler.
* Patch 1693258: Fix for duplicate "preferences" menu-OS XRonald Oussoren2007-07-091-18/+31
|
* Fix typo in commentNeal Norwitz2007-07-061-1/+1
|
* Fix a few webbrowser.py problems.Georg Brandl2007-07-011-0/+2
|
* Bug #1737864: allow empty message in logging format routines.Georg Brandl2007-06-191-2/+2
|
* Added exclude keyword argument to the TarFile.add() method.Lars Gustäbel2007-06-182-4/+31
|
* Add patch #1726668: Windows Vista support.Marc-André Lemburg2007-06-121-0/+20
|
* Apply patch #1734945 to support TurboLinux as distribution.Marc-André Lemburg2007-06-121-1/+1
|
* Bug #1734723: Fix repr.Repr() so it doesn't ignore the maxtuple attribute.Neal Norwitz2007-06-112-1/+14
| | | | Will backport
* Not sure why this only fails sometimes on Unix machines. BetterNeal Norwitz2007-06-111-1/+2
| | | | | to disable it and only import msvccompiler on Windows since that's the only place it can work anyways.
* Add all of the distuils modules that don't seem to have explicit tests. :-(Neal Norwitz2007-06-112-2/+48
| | | | | Move an import in mworkscompiler so that this module can be imported on any platform. Hopefully this works on all platforms.
* Prevent hang if the port cannot be opened.Neal Norwitz2007-06-111-6/+15
|
* Fix a bug when there was a newline in the string expandtabs was called on.Neal Norwitz2007-06-111-0/+5
| | | | | | This also catches another condition that can overflow. Will backport.
* Prevent these tests from running on Win64 since they don\'t apply there eitherNeal Norwitz2007-06-112-3/+4
|
* Patch #1733960: Allow T_LONGLONG to accept ints.Martin v. Löwis2007-06-091-1/+19
| | | | Will backport to 2.5.
* Prevent expandtabs() on string and unicode objects from causing a segfault whenNeal Norwitz2007-06-092-2/+18
| | | | | | | a large width is passed on 32-bit platforms. Found by Google. It would be good for people to review this especially carefully and verify I don't have an off by one error and there is no other way to cause overflow.
* Make this test work with older Python releases where struct has no 't' ↵Thomas Heller2007-06-081-1/+4
| | | | format character.
* Patch #1667860: Fix UnboundLocalError in urllib2.Georg Brandl2007-06-072-1/+302
|
* Disallow function calls like foo(None=1).Georg Brandl2007-06-071-0/+3
| | | | Backport from py3k rev. 55708 by Guido.
* Added an optional timeout parameter to function urllib2.urlopen,Facundo Batista2007-06-063-13/+62
| | | | | | | with tests in test_urllib2net.py (must have network resource enabled to execute them). Also modified test_urllib2.py because testing mock classes must take it into acount. Docs are also updated.
* FTP.ntransfercmd method now uses create_connection when passive,Facundo Batista2007-06-061-3/+1
| | | | using the timeout received in connection time.
* Patch #1731049: make threading.py use a proper "raise" when checking ↵Collin Winter2007-06-062-13/+64
| | | | internal state, rather than assert statements (which get stripped out by -O).
* Fix for Windows: close a temporary file before trying to delete it.Hye-Shik Chang2007-06-051-0/+2
|
* Bug #1728403: Fix a bug that CJKCodecs StreamReader hangs when itHye-Shik Chang2007-06-051-1/+9
| | | | | reads a file that ends with incomplete sequence and sizehint argument for .read() is specified.
* Make _strptime.TimeRE().pattern() use ``\s+`` for matching whitespace insteadBrett Cannon2007-06-032-1/+10
| | | | | | | of ``\s*``. This prevents patterns from "stealing" bits from other patterns in order to make a match work. Closes bug #1730389. Will be backported.
* SF 1668596/1720897: distutils now copies data filesNeal Norwitz2007-06-012-1/+38
| | | | | | | | even if package_dir is empty. This needs to be backported. I'm too tired tonight. It would be great if someone backports this if the buildbots are ok with it. Otherwise, I will try to get to it tomorrow.
* Have cfmfile raise a DeprecationWarning as per PEP 4.Brett Cannon2007-05-311-0/+3
|