summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Issue #14098: New functions PyErr_GetExcInfo and PyErr_SetExcInfo.Martin v. Löwis2012-04-191-0/+23
| | | | Patch by Stefan Behnel.
* Merge from 3.2Nick Coghlan2012-04-191-1/+1
|\
| * Close #14032: fix incorrect variable reference in test_cmd_line_scriptNick Coghlan2012-04-191-1/+1
| |
* | #14538: merge with 3.2.Ezio Melotti2012-04-191-0/+10
|\ \ | |/
| * #14538: HTMLParser can now parse correctly start tags that contain a bare /.Ezio Melotti2012-04-191-0/+10
| |
* | Issue #14385: Support other types than dict for __builtins__Victor Stinner2012-04-181-0/+33
| | | | | | | | | | | | It is now possible to use a custom type for the __builtins__ namespace, instead of a dict. It can be used for sandboxing for example. Raise also a NameError instead of ImportError if __build_class__ name if not found in __builtins__.
* | Issue #11750: The Windows API functions scattered in the _subprocess andAntoine Pitrou2012-04-181-1/+1
| | | | | | | | | | _multiprocessing.win32 modules now live in a single module "_winapi". Patch by sbt.
* | merge 3.2 (#14612)Benjamin Peterson2012-04-181-0/+11
|\ \ | |/
| * SETUP_WITH acts like SETUP_FINALLY for the purposes of setting f_lineno ↵Benjamin Peterson2012-04-181-0/+11
| | | | | | | | (closes #14612)
* | merge 3.2 (#14607)Benjamin Peterson2012-04-171-0/+6
|\ \ | |/
| * mangle keyword-only argname when loading defaults (closes #14607)Benjamin Peterson2012-04-171-0/+6
| |
* | Issue #5113: Fix a test_posix failure on HP-UX, where non-root users canCharles-François Natali2012-04-171-2/+9
|\ \ | |/ | | | | chown() to root under certain circumstances.
| * Issue #5113: Fix a test_posix failure on HP-UX, where non-root users canCharles-François Natali2012-04-171-2/+9
| | | | | | | | chown() to root under certain circumstances.
* | Issue #14087: multiprocessing: add Condition.wait_for(). Patch by sbt.Charles-François Natali2012-04-171-0/+67
| |
* | Issue #14599: Fix an import caching race condition.Brett Cannon2012-04-171-0/+1
| |
* | Issue #14599: Make test_reprlib robust against import cache raceBrett Cannon2012-04-171-0/+7
| | | | | | | | conditions when regrtest is run with its -j option.
* | pep8-ize test namesAntoine Pitrou2012-04-161-3/+3
| |
* | Fix refleak in test_gcAntoine Pitrou2012-04-161-1/+2
| |
* | Closes #14452: brought tests in line with removal of BOM insertion code.Vinay Sajip2012-04-161-3/+3
| |
* | Fix #10854. Make use of the new path and name attributes on ImportErrorBrian Curtin2012-04-161-0/+18
| | | | | | | | for extension modules on Windows.
* | Issue #14589: Update certificate chain for sha256.tbs-internet.com, fixing a ↵Antoine Pitrou2012-04-161-112/+111
|\ \ | |/ | | | | test failure in test_ssl.
| * Issue #14589: Update certificate chain for sha256.tbs-internet.com, fixing a ↵Antoine Pitrou2012-04-161-112/+111
| | | | | | | | test failure in test_ssl.
* | Issue #14386: Expose the dict_proxy internal type as types.MappingProxyTypeVictor Stinner2012-04-152-5/+183
| |
* | Issue #13496: Merge from 3.2Mark Dickinson2012-04-151-0/+7
|\ \ | |/
| * Issue 13496: Fix bisect.bisect overflow bug for large collections.Mark Dickinson2012-04-151-0/+7
| |
| * #14399: zipfile now correctly handles comments added to empty zipfiles.R David Murray2012-04-121-0/+22
| | | | | | | | | | | | | | | | Patch by Serhiy Storchaka. This also moves the TypeError that results from trying to use a unicode comment from the 'close' step to the point at which the comment is added to the zipfile.
* | Issue #10576: Add a progress callback to gcmoduleKristján Valur Jónsson2012-04-151-1/+135
| |
* | Fix an import race condition.Brett Cannon2012-04-141-2/+2
| |
* | Try to fix a sporadic test failure from what is probably a caching race ↵Brett Cannon2012-04-141-0/+1
| | | | | | | | condition.
* | Issue #2377: Make importlib the implementation of __import__().Brett Cannon2012-04-147-27/+57
| | | | | | | | | | | | | | importlib._bootstrap is now frozen into Python/importlib.h and stored as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen code along with sys and imp and then uses _frozen_importlib._install() to set builtins.__import__() w/ _frozen_importlib.__import__().
* | Issue #1559549: Add 'name' and 'path' attributes to ImportError.Brett Cannon2012-04-131-1/+23
| | | | | | | | | | | | | | | | Currently import does not use these attributes as they are planned for use by importlib (which will be another commit). Thanks to Filip Gruszczyński for the initial patch and Brian Curtin for refining it.
* | Merge #14399: zipfile now correctly handles comments added to empty zipfiles.R David Murray2012-04-121-0/+22
| | | | | | | | | | | | | | | | Patch by Serhiy Storchaka. This also moves the TypeError that results from trying to use a unicode comment from the 'close' step to the point at which the comment is added to the zipfile.
* | code improvement. 'as cm' not required when not used. Review comment by ↵Senthil Kumaran2012-04-121-7/+7
| | | | | | | | Georg Brandl
* | #14508: make gprof2html script runnable under python3R David Murray2012-04-111-1/+24
|\ \ | |/ | | | | | | | | | | | | | | | | Not that I haven't tested it to make sure it works, just that it can run against an empty source file. Initial patch by Popa.Claudiu. Here we also add a test (which uses mock, which is why I didn't check it in on 3.2).
* | merge to default - Issue 10484 - Incorporate improvements to CGI module - ↵Senthil Kumaran2012-04-111-25/+28
|\ \ | |/ | | | | Suggested by Glenn Linderman. Refactor code and tests
| * 3.2 - Issue 10484 - Incorporate improvements to CGI module - Suggested by ↵Senthil Kumaran2012-04-111-25/+28
| | | | | | | | Glenn Linderman. Refactor code and tests
* | use assertWarns instead of check_warnings - Issue14341Senthil Kumaran2012-04-111-7/+9
| |
* | merge - fix the incorrect changes made for PATH_INFO value - Issue10484Senthil Kumaran2012-04-101-1/+0
|\ \ | |/
| * 3.2- fix the incorrect changes made for PATH_INFO value - Issue10484Senthil Kumaran2012-04-101-1/+0
| |
| * Fix the patch for issue #7978: select() raises select.error before 3.3, not ↵Antoine Pitrou2012-04-081-1/+1
| | | | | | | | OSError.
* | Rename test_ file that is really a support file to remove test_ prefix.R David Murray2012-04-0912-64/+64
| | | | | | | | | | | | | | | | I thought I had run the full test suite before the last checkin, but obviously I didn't. test_multibytecodec_support.py isn't really a test file, it is a support file that contains a base test class. Rename it to multibytecodec_support so that regrtest test discovery doesn't think it is a test file that should be run.
* | #14533: if a test has no test_main, use loadTestsFromModule.R David Murray2012-04-091-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This moves us further in the direction of using normal unittest facilities instead of specialized regrtest ones. Any test module that can be correctly run currently using 'python unittest -m test.test_xxx' can now be converted to use normal unittest test loading by simply deleting its test_main, thus no longer requiring manual maintenance of the list of tests to run. (Not all tests can be converted that easily, since test_main sometimes does some additional things (such as reap_children or reap_threads). In those cases the extra code may be moved to setUpModule/tearDownModule methods, or perhaps the same ends can be achieved in a different way, such as moving the decorators to the test classes that need them, etc.) I don't advocate going through and making this change wholesale, but any time a list of tests in test_main would otherwise need to be updated, consideration should instead be given to deleting test_main.
* | #12537: in mailbox avoid depending on knowledge of email package internalsR David Murray2012-04-091-0/+23
| | | | | | | | | | | | | | | | | | | | | | Previously mailbox was copying a list of attributes from one message object to another in order to "copy the message data". This means that any time new attributes were added to email.message.Message, mailbox broke. Now instead it copies all attributes from the source object to the target object, skipping any mailbox-object-specific attributes to produce the same clean initial state it was previously getting by copying only the "known" attributes. David Lam assisted in the development of this patch.
* | Remove redundancy in listing of all mailbox classes in test_mailbox.R David Murray2012-04-091-15/+9
| |
* | Fix flakiness in test_socketserverAntoine Pitrou2012-04-081-1/+4
|\ \ | |/
| * Fix flakiness in test_socketserverAntoine Pitrou2012-04-081-1/+4
| |
* | Issue #7978: socketserver now restarts the select() call when EINTR is returned.Antoine Pitrou2012-04-081-0/+34
|\ \ | |/ | | | | | | This avoids crashing the server loop when a signal is received. Patch by Jerzy Kozera.
| * Issue #7978: socketserver now restarts the select() call when EINTR is returned.Antoine Pitrou2012-04-081-0/+34
| | | | | | | | | | This avoids crashing the server loop when a signal is received. Patch by Jerzy Kozera.
* | Merge: Make test_mailbox runnable via python -m unittest.R David Murray2012-04-081-17/+17
|\ \ | |/
| * Make test_mailbox runnable via python -m unittest.R David Murray2012-04-081-17/+17
| |