Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Minor docstring / docs corrections for unittest.mock | Michael Foord | 2012-04-13 | 1 | -6/+6 |
| | |||||
* | Make unittest.mock.create_autospec resilient against AttributeError on ↵ | Michael Foord | 2012-04-13 | 2 | -2/+29 |
| | | | | original object | ||||
* | unittest.mock.PropertyMock return value and attributes are now standard ↵ | Michael Foord | 2012-04-13 | 2 | -0/+14 |
| | | | | MagicMocks | ||||
* | Have importlib take advantage of ImportError's new 'name' and 'path' | Brett Cannon | 2012-04-13 | 9 | -41/+76 |
| | | | | attributes. | ||||
* | Issue #1559549: Add 'name' and 'path' attributes to ImportError. | Brett Cannon | 2012-04-13 | 1 | -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 Murray | 2012-04-12 | 2 | -11/+44 |
| | | | | | | | | 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 Kumaran | 2012-04-12 | 1 | -7/+7 |
| | | | | Georg Brandl | ||||
* | #14508: make gprof2html script runnable under python3 | R David Murray | 2012-04-11 | 1 | -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 Kumaran | 2012-04-11 | 2 | -51/+56 |
|\ \ | |/ | | | | | Suggested by Glenn Linderman. Refactor code and tests | ||||
| * | 3.2 - Issue 10484 - Incorporate improvements to CGI module - Suggested by ↵ | Senthil Kumaran | 2012-04-11 | 2 | -51/+56 |
| | | | | | | | | Glenn Linderman. Refactor code and tests | ||||
| * | Merge 3.2.3 release clone. | Georg Brandl | 2012-04-11 | 2 | -2/+2 |
| |\ | |||||
| | * | Bump to 3.2.3 final. | Georg Brandl | 2012-04-10 | 2 | -2/+2 |
| | | | |||||
* | | | use assertWarns instead of check_warnings - Issue14341 | Senthil Kumaran | 2012-04-11 | 1 | -7/+9 |
| | | | |||||
* | | | Make the trace module ignore modules whose names start with "<" and | Brett Cannon | 2012-04-11 | 1 | -2/+1 |
| | | | | | | | | | | | | end with ">", i.e. follow convention. | ||||
* | | | merge - fix the incorrect changes made for PATH_INFO value - Issue10484 | Senthil Kumaran | 2012-04-10 | 2 | -11/+6 |
|\ \ \ | |/ / | |||||
| * | | 3.2- fix the incorrect changes made for PATH_INFO value - Issue10484 | Senthil Kumaran | 2012-04-10 | 2 | -11/+6 |
| | | | |||||
| * | | Fix the patch for issue #7978: select() raises select.error before 3.3, not ↵ | Antoine Pitrou | 2012-04-08 | 2 | -3/+3 |
| | | | | | | | | | | | | OSError. | ||||
* | | | Rename test_ file that is really a support file to remove test_ prefix. | R David Murray | 2012-04-09 | 12 | -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 Murray | 2012-04-09 | 1 | -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 internals | R David Murray | 2012-04-09 | 2 | -3/+35 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Murray | 2012-04-09 | 1 | -15/+9 |
| | | | |||||
* | | | Fix flakiness in test_socketserver | Antoine Pitrou | 2012-04-08 | 1 | -1/+4 |
|\ \ \ | |/ / | |||||
| * | | Fix flakiness in test_socketserver | Antoine Pitrou | 2012-04-08 | 1 | -1/+4 |
| | | | |||||
* | | | Issue #7978: socketserver now restarts the select() call when EINTR is returned. | Antoine Pitrou | 2012-04-08 | 2 | -2/+47 |
|\ \ \ | |/ / | | | | | | | | | | 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 Pitrou | 2012-04-08 | 2 | -2/+47 |
| | | | | | | | | | | | | | | | 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 Murray | 2012-04-08 | 1 | -17/+17 |
|\ \ \ | |/ / | |||||
| * | | Make test_mailbox runnable via python -m unittest. | R David Murray | 2012-04-08 | 1 | -17/+17 |
| | | | |||||
* | | | Issue #14522: Avoid duplicating socket handles in multiprocessing.connection. | Antoine Pitrou | 2012-04-07 | 1 | -12/+3 |
| | | | | | | | | | | | | Patch by sbt. | ||||
* | | | Issue #14310: Catch testing errors when trying to create unsupported socket | Kristján Valur Jónsson | 2012-04-07 | 1 | -1/+4 |
| | | | | | | | | | | | | types on some platforms. | ||||
* | | | Issue #14310: inter-process socket duplication for windows | Kristján Valur Jónsson | 2012-04-07 | 2 | -1/+114 |
| | | | |||||
* | | | Issue #14500: Fix importlib.test.import_.test_packages to clean up | Brett Cannon | 2012-04-06 | 1 | -1/+5 |
| | | | | | | | | | | | | after itself properly. | ||||
* | | | merge | Brett Cannon | 2012-04-06 | 26 | -79/+926 |
|\ \ \ | |||||
| * | | | Set a time threshold in test_asyncore.capture_server so that tests don't | Kristján Valur Jónsson | 2012-04-06 | 1 | -3/+4 |
| | | | | | | | | | | | | | | | | deadlock if the main thread fails before sending all the data. | ||||
| * | | | Merge #14492: fix some bugs in Tools/scripts/pdeps.py. | R David Murray | 2012-04-06 | 1 | -0/+27 |
| |\ \ \ | | |/ / | | | | | | | | | Initial patch by Popa Claudiu. | ||||
| | * | | #14492: fix some bugs in Tools/scripts/pdeps.py. | R David Murray | 2012-04-06 | 1 | -0/+27 |
| | | | | | | | | | | | | | | | | Initial patch by Popa Claudiu. | ||||
| * | | | Clarify that the purpose of computing all the miscellaneous collection types ↵ | Raymond Hettinger | 2012-04-05 | 1 | -3/+7 |
| | | | | | | | | | | | | | | | | is to register them with the appropriate ABCs. | ||||
| * | | | Issue #8515: Set __file__ when run file in IDLE. | Andrew Svetlov | 2012-04-05 | 2 | -6/+9 |
| | | | | |||||
| * | | | Merge. | Stefan Krah | 2012-04-05 | 1 | -2/+2 |
| |\ \ \ | |||||
| | * \ \ | Merge from 3.2 | Andrew Svetlov | 2012-04-05 | 1 | -2/+2 |
| | |\ \ \ | | | |/ / | |||||
| | | * | | Issue #14496: Fix wrong name in idlelib/tabbedpages.py. | Andrew Svetlov | 2012-04-05 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | Patch by Popa Claudiu. | ||||
| * | | | | Allow printing a leading '-' and the maximum number of exponent digits | Stefan Krah | 2012-04-05 | 1 | -0/+48 |
| | | | | | | | | | | | | | | | | | | | | | | | | | rather than raising RuntimeError (allocated space is sufficient for the additional character). | ||||
| * | | | | Raise InvalidOperation if exponents of zeros are clamped during exact | Stefan Krah | 2012-04-05 | 1 | -0/+24 |
| |/ / / | | | | | | | | | | | | | | | | | conversion in the Decimal constructor. Exact here refers to the representation and not to the value (clamping does not change the value). | ||||
| * | | | Issue #3033: Add displayof parameter to tkinter font. | Andrew Svetlov | 2012-04-05 | 1 | -17/+27 |
| | | | | | | | | | | | | | | | | Patch by Guilherme Polo. | ||||
| * | | | Merge: test_tools fix: don't import analyze_dxp if no _thread module | R David Murray | 2012-04-05 | 1 | -0/+1 |
| |\ \ \ | | |/ / | |||||
| | * | | test_tools fix: don't import analyze_dxp if no _thread module | R David Murray | 2012-04-05 | 1 | -0/+1 |
| | | | | |||||
| * | | | Merge #14490, #14491: add 'sundry'-style import tests for Tools/scripts. | R David Murray | 2012-04-05 | 1 | -2/+43 |
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | This patch changes a few of the scripts to have __name__=='__main__' clauses so that they are importable without running. Also fixes the syntax errors revealed by the tests. | ||||
| | * | | #14490, #14491: add 'sundry'-style import tests for Tools/scripts. | R David Murray | 2012-04-05 | 1 | -2/+43 |
| | | | | | | | | | | | | | | | | | | | | | | | | This patch changes a few of the scripts to have __name__=='__main__' clauses so that they are importable without running. Also fixes the syntax errors revealed by the tests. | ||||
| * | | | merge with 3.2 | Georg Brandl | 2012-04-04 | 1 | -1/+1 |
| |\ \ \ | | |/ / | |||||
| | * | | Closes #14495: fix typo. | Georg Brandl | 2012-04-04 | 1 | -1/+1 |
| | | | | |||||
| * | | | - Issue #14493: Use gvfs-open/xdg-open in Lib/webbrowser.py. | Matthias Klose | 2012-04-04 | 1 | -0/+8 |
| | | | |