summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Backport r57105 and r57145 from the py3k branch: UTF-32 codecs.Walter Dörwald2007-08-172-2/+138
|
* Fix a missed instance of test.test_support.guard_warnings_filter (which wasBrett Cannon2007-08-141-1/+1
| | | | recently removed).
* Added tests for simple function calls and introspection that are runFacundo Batista2007-08-141-2/+102
| | | | | | against a SimpleXMLRPCServer in a separate thread. Because of problems with WSAEWOULDBLOCK (error 10035) being raised by the server on Windows, these new tests are skipped on win32. [GSoC - Alan McIntyre]
* Remove test.test_support.guard_warnings_filter.Brett Cannon2007-08-149-26/+18
| | | | | | | | test.test_support.catch_warning is more full-featured and provides the same functionality. Since guard_warnings_filter was added in 2.6 there is no backwards-compatibility issues.
* Fix a minor typo in a docstring.Brett Cannon2007-08-141-1/+1
|
* Revert the fix for #1548891, it broke backwards compatibility with arbitrary ↵Georg Brandl2007-08-081-22/+0
| | | | | | read buffers. Fixes #1730114.
* Fix gb18030 codec's bug that doesn't map two-byte characters onHye-Shik Chang2007-08-042-1/+22
| | | | GB18030 extension in encoding. (bug reported by Bjorn Stabell)
* Allow the OS to select a free port for each test server. ForFacundo Batista2007-08-011-30/+99
| | | | | | | | | DebuggingServerTests, construct SMTP objects with a localhost argument to avoid abysmally long FQDN lookups (not relevant to items under test) on some machines that would cause the test to fail. Moved server setup code in the server function inside the try block to avoid the possibility of setup failure hanging the test. Minor edits to conform to PEP 8. [GSoC - Alan McIntyre]
* When running asynchat tests on OS X (darwin), the test client nowFacundo Batista2007-07-311-8/+14
| | | | | | | | overrides asyncore.dispatcher.handle_expt to do nothing, since select.poll gives a POLLHUP error at the completion of these tests. Added timeout & count arguments to several asyncore.loop calls to avoid the possibility of a test hanging up a build. [GSoC - Alan McIntyre]
* Added tests for asynchat classes simple_producer & fifo, and theFacundo Batista2007-07-291-26/+179
| | | | | | | | | find_prefix_at_end function. Check behavior of a string given as a producer. Added tests for behavior of asynchat.async_chat when given int, long, and None terminator arguments. Added usepoll attribute to TestAsynchat to allow running the asynchat tests with poll support chosen whether it's available or not (improves coverage of asyncore code). [GSoC - Alan McIntyre]
* Moved all of the capture_server socket setup code into the try blockFacundo Batista2007-07-281-9/+26
| | | | | | | | | so that the event gets set if a failure occurs during server setup (otherwise the test will block forever). Changed to let the OS assign the server port number, and client side of test waits for port number assignment before proceeding. The test data in DispatcherWithSendTests is also sent in multiple send() calls instead of one to make sure this works properly. [GSoC - Alan McIntyre]
* Bug #1704793: Return UTF-16 pair if unicodedata.lookup cannotMartin v. Löwis2007-07-281-0/+3
| | | | represent the result in a single character.
* Bug #978833: Close https sockets by releasing the _ssl object.Martin v. Löwis2007-07-271-0/+19
|
* Make test_math error messages more meaningful for small discrepancies in resultsNick Coghlan2007-07-271-1/+5
|
* Add explicit test for a misbehaving math.floorNick Coghlan2007-07-262-6/+7
|
* Add a temporary diagnostic message before a strange failure on the alpha ↵Nick Coghlan2007-07-251-0/+6
| | | | Debian buildbot
* More buildbot cleanup - let the OS assign the port for test_urllib2_localnetNick Coghlan2007-07-251-29/+11
|
* 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-241-21/+29
| | | | 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-231-6/+6
| | | | | | 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-141-1/+12
| | | | | | | 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.
* 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-121-4/+114
| | | | | 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 #1752270, #1750931: complain if urllib2 add_handler calledGeorg Brandl2007-07-121-0/+6
| | | | without handler.
* Added exclude keyword argument to the TarFile.add() method.Lars Gustäbel2007-06-181-0/+21
|
* Bug #1734723: Fix repr.Repr() so it doesn't ignore the maxtuple attribute.Neal Norwitz2007-06-111-0/+13
| | | | 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-111-1/+47
| | | | | 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.
* Patch #1667860: Fix UnboundLocalError in urllib2.Georg Brandl2007-06-071-0/+301
|
* 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-062-3/+51
| | | | | | | 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.
* Patch #1731049: make threading.py use a proper "raise" when checking ↵Collin Winter2007-06-061-1/+41
| | | | 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
|