summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* 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-122-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 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-112-51/+56
|\ \ | |/ | | | | Suggested by Glenn Linderman. Refactor code and tests
| * 3.2 - Issue 10484 - Incorporate improvements to CGI module - Suggested by ↵Senthil Kumaran2012-04-112-51/+56
| | | | | | | | Glenn Linderman. Refactor code and tests
| * Merge 3.2.3 release clone.Georg Brandl2012-04-112-2/+2
| |\
| | * Bump to 3.2.3 final.Georg Brandl2012-04-102-2/+2
| | |
* | | use assertWarns instead of check_warnings - Issue14341Senthil Kumaran2012-04-111-7/+9
| | |
* | | Make the trace module ignore modules whose names start with "<" andBrett Cannon2012-04-111-2/+1
| | | | | | | | | | | | end with ">", i.e. follow convention.
* | | merge - fix the incorrect changes made for PATH_INFO value - Issue10484Senthil Kumaran2012-04-102-11/+6
|\ \ \ | |/ /
| * | 3.2- fix the incorrect changes made for PATH_INFO value - Issue10484Senthil Kumaran2012-04-102-11/+6
| | |
| * | Fix the patch for issue #7978: select() raises select.error before 3.3, not ↵Antoine Pitrou2012-04-082-3/+3
| | | | | | | | | | | | 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-092-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 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-082-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 Pitrou2012-04-082-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 Murray2012-04-081-17/+17
|\ \ \ | |/ /
| * | Make test_mailbox runnable via python -m unittest.R David Murray2012-04-081-17/+17
| | |
* | | Issue #14522: Avoid duplicating socket handles in multiprocessing.connection.Antoine Pitrou2012-04-071-12/+3
| | | | | | | | | | | | Patch by sbt.
* | | Issue #14310: Catch testing errors when trying to create unsupported socketKristján Valur Jónsson2012-04-071-1/+4
| | | | | | | | | | | | types on some platforms.
* | | Issue #14310: inter-process socket duplication for windowsKristján Valur Jónsson2012-04-072-1/+114
| | |
* | | Issue #14500: Fix importlib.test.import_.test_packages to clean upBrett Cannon2012-04-061-1/+5
| | | | | | | | | | | | after itself properly.
* | | mergeBrett Cannon2012-04-0626-79/+926
|\ \ \
| * | | Set a time threshold in test_asyncore.capture_server so that tests don'tKristján Valur Jónsson2012-04-061-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 Murray2012-04-061-0/+27
| |\ \ \ | | |/ / | | | | | | | | Initial patch by Popa Claudiu.
| | * | #14492: fix some bugs in Tools/scripts/pdeps.py.R David Murray2012-04-061-0/+27
| | | | | | | | | | | | | | | | Initial patch by Popa Claudiu.
| * | | Clarify that the purpose of computing all the miscellaneous collection types ↵Raymond Hettinger2012-04-051-3/+7
| | | | | | | | | | | | | | | | is to register them with the appropriate ABCs.
| * | | Issue #8515: Set __file__ when run file in IDLE.Andrew Svetlov2012-04-052-6/+9
| | | |
| * | | Merge.Stefan Krah2012-04-051-2/+2
| |\ \ \
| | * \ \ Merge from 3.2Andrew Svetlov2012-04-051-2/+2
| | |\ \ \ | | | |/ /
| | | * | Issue #14496: Fix wrong name in idlelib/tabbedpages.py.Andrew Svetlov2012-04-051-2/+2
| | | | | | | | | | | | | | | | | | | | Patch by Popa Claudiu.
| * | | | Allow printing a leading '-' and the maximum number of exponent digitsStefan Krah2012-04-051-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | rather than raising RuntimeError (allocated space is sufficient for the additional character).
| * | | | Raise InvalidOperation if exponents of zeros are clamped during exactStefan Krah2012-04-051-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 Svetlov2012-04-051-17/+27
| | | | | | | | | | | | | | | | Patch by Guilherme Polo.
| * | | Merge: test_tools fix: don't import analyze_dxp if no _thread moduleR David Murray2012-04-051-0/+1
| |\ \ \ | | |/ /
| | * | test_tools fix: don't import analyze_dxp if no _thread moduleR David Murray2012-04-051-0/+1
| | | |
| * | | Merge #14490, #14491: add 'sundry'-style import tests for Tools/scripts.R David Murray2012-04-051-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 Murray2012-04-051-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.2Georg Brandl2012-04-041-1/+1
| |\ \ \ | | |/ /
| | * | Closes #14495: fix typo.Georg Brandl2012-04-041-1/+1
| | | |
| * | | - Issue #14493: Use gvfs-open/xdg-open in Lib/webbrowser.py.Matthias Klose2012-04-041-0/+8
| | | |
| * | | Fixes and enhancements to _elementtree:Eli Bendersky2012-04-031-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | * Fixed refleak problems when GC collection is run (see messages in issue #14065) * Added weakref support to Element objects
| * | | Issue #14482: Raise a ValueError, not a NameError, when trying to createAntoine Pitrou2012-04-032-0/+8
| |\ \ \ | | |/ / | | | | | | | | | | | | a multiprocessing Client or Listener with an AF_UNIX type address under Windows. Patch by Popa Claudiu.
| | * | Issue #14482: Raise a ValueError, not a NameError, when trying to createAntoine Pitrou2012-04-032-0/+10
| | | | | | | | | | | | | | | | | | | | a multiprocessing Client or Listener with an AF_UNIX type address under Windows. Patch by Popa Claudiu.
| * | | Issue #14288: Serialization support for builtin iterators.Kristján Valur Jónsson2012-04-0313-39/+669
| | | |