summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* New test code failed to close the file. This causedTim Peters2006-02-141-13/+12
| | | | | | | | | | test_file to fail on Windows in reality (can't delete a still-open file), but a new bare "except:" hid that test_file failed on Windows, and leaving behind the still-open TESTFN caused a cascade of bogus failures in later tests. So, close the file, and stop hiding failure to unlink.
* SF patch #1397960: When mixing file-iteration andThomas Wouters2006-02-121-1/+111
| | | | | | | readline/readlines/read/readinto, loudly break by raising ValueError, rather than silently deliver data out of order or hitting EOF prematurely. Probably not a bugfix candidate, even though it affects no 'working' code.
* Renamed _length_cue() to __length_hint__(). See:Armin Rigo2006-02-112-2/+6
| | | | http://mail.python.org/pipermail/python-dev/2006-February/060524.html
* Added function name to LogRecord.Vinay Sajip2006-02-091-5/+8
|
* Propagate exceptions from shutdown() if raiseExceptions is not set.Vinay Sajip2006-02-091-6/+14
| | | | Added 'extra' keyword argument handling to logging calls, as discussed on python-dev.
* Added lock acquisition/release around shared data structure manipulationVinay Sajip2006-02-091-19/+34
|
* Port relevant patches for SF 1409455 to the trunk for email 3.0/Python 2.5.Barry Warsaw2006-02-085-8/+20
| | | | Will port to Python 2.4.
* Added the cProfile module.Armin Rigo2006-02-086-66/+554
| | | | | | | | | | | | | | | | | | | | | | | Based on lsprof (patch #1212837) by Brett Rosen and Ted Czotter. With further editing by Michael Hudson and myself. History in svn repo: http://codespeak.net/svn/user/arigo/hack/misc/lsprof * Module/_lsprof.c is the internal C module, Lib/cProfile.py a wrapper. * pstats.py updated to display cProfile's caller/callee timings if available. * setup.py and NEWS updated. * documentation updates in the profiler section: - explain the differences between the three profilers that we have now - profile and cProfile can use a unified documentation, like (c)Pickle - mention that hotshot is "for specialized usage" now - removed references to the "old profiler" that no longer exists * test updates: - extended test_profile to cover delicate cases like recursion - added tests for the caller/callee displays - added test_cProfile, performing the same tests for cProfile * TO-DO: - cProfile gives a nicer name to built-in, particularly built-in methods, which could be backported to profile. - not tested on Windows recently!
* Removed defensive test in Handler.closeVinay Sajip2006-02-071-4/+3
|
* Saved and restored logging._handlerList at the same time as saving/restoring ↵Vinay Sajip2006-02-071-0/+4
| | | | logging._handlers.
* Patch #1412872: zipfile: use correct system type on unixy systems.Martin v. Löwis2006-02-051-2/+6
|
* Get test_logging to not hang when running under regrtest.py -R ::Neal Norwitz2006-02-052-5/+6
| | | | | | | | | | | | | | Not sure why/how _handlers/_handlerList is out of sync. This could indicate a deeper problem. In test_logging, the only absolutely necessary change to get working was tcpserver.abort = 1. But we don't want to wait infinitely to join the threads, so give a 2.0 second timeout. There doesn't appear to be a need for a local abort variable in serve_until_stopped, so just use the instance member. Note the problem is only on HEAD, not in 2.4.
* Patch #1407135, bug #1424041, make mmap.mmap(-1, length) work the sameNeal Norwitz2006-02-052-2/+13
| | | | | | | | | | | on both Unix (SVR4 and BSD) and Windows. Restores behaviour of passing -1 for anonymous memory on Unix. Use MAP_ANONYMOUS instead of _ANON since the latter is deprecated according to Linux (gentoo) man pages. Should we continue to allow mmap.mmap(0, length) to work on Windows? 0 is a valid fd. Will backport bugfix portions.
* Resolves SF bug #1423972.Barry Warsaw2006-02-041-2/+4
|
* Fix typoNeal Norwitz2006-02-041-1/+1
|
* parsedate_tz(): Minor cleanup.Barry Warsaw2006-02-032-3/+11
| | | | | Port from Python 2.3/email 2.5: Add a test for the tm_yday field is 1 in the return of parsedate().
* Patch #1413711: Certain patterns of differences were making difflibGustavo Niemeyer2006-01-312-17/+31
| | | | | touch the recursion limit. The applied patch inlines the recursive __helper method in a non-recursive way.
* fix test import for use in standalone pybsddb project bsddb3 module as wellGregory P. Smith2006-01-291-1/+6
| | | | as python builtin bsddb.
* Whitespace normalization.Tim Peters2006-01-291-1/+1
|
* Try a number of ports, in case 9020 is already in use.Martin v. Löwis2006-01-291-3/+14
|
* Explicitly close the server socket.Martin v. Löwis2006-01-291-0/+2
|
* Work around a Solaris peculiarity that caused test_pty to sometimes fail: aThomas Wouters2006-01-281-1/+8
| | | | | | | | | tty opened by os.openpty() isn't always a tty according to os.isatty(), when it's tested inside the process that opened it. Doesn't affect actual functionality, as using a tty this way is rarely, if ever, useful. Ignoring the failure allows the test for actual functionality to continue. Will backport to 2.4-maint.
* Improved handling of syntax errors.Jeremy Hylton2006-01-272-1/+239
| | | | | | | | | | | | | | | | | Expand set of errors caught in set_context(). Some new errors, some old error messages changed for consistency. Fixed error checking in generator expression code. The first set of tests were impossible condition given the grammar. In general, the ast code uses REQ() for those sanity checks. Fix some error handling for augmented assignments. As comments in the code explain, set_context() ought to work here, but I got unexpected crashes when I tried it. Should come back to this. Add note to Grammar that yield expression is a special case. Add doctest cases for SyntaxErrors raised by ast.c.
* Add wrapper for DBEnv.set_tx_timeout method to allow time based DB_RECOVERGregory P. Smith2006-01-272-0/+5
| | | | (test cases and dbobj wrapping)
* There was a race condition where the connector would try to connectNeal Norwitz2006-01-251-0/+3
| | | | | | | | | | before the listener was ready (on gentoo x86 buildslave). This caused the listener to not exit normally since nobody connected to it (waited in accept()). The exception was raised in the other thread and the test failed. This fix doesn't completely eliminate the race, but should make it near impossible to trigger. Hopefully it's good enough.
* Remove generated test db filesNeal Norwitz2006-01-251-2/+3
|
* Fix bug #1413192, fix seg fault in bsddb if a txn was deleted before the env.Neal Norwitz2006-01-253-0/+28
| | | | Will backport.
* test_rude_shutdown(): Rewrote to use proper threadTim Peters2006-01-241-11/+19
| | | | synchronization and termination.
* Whitespace normalization.Tim Peters2006-01-241-4/+4
|
* Patch #1349118: urllib2 now supports user:pass@ style proxyMartin v. Löwis2006-01-241-6/+93
| | | | | specifications, raises IOErrors when proxies for unsupported protocols are defined, and uses the https proxy on https redirections.
* Repaired new test failures on Windows:Tim Peters2006-01-231-3/+12
| | | | | | | - The path separator isn't "/" on Windows. - Leaving behind a read-only file causes cascades of bogus failures on Windows.
* Whitespace normalization.Tim Peters2006-01-231-1/+1
|
* Disable this test until I can test on big-endian machines and get passingNeal Norwitz2006-01-231-1/+2
|
* Test zipimporter a bit more. Also get working with -R :: option for finding ↵Neal Norwitz2006-01-231-4/+122
| | | | ref leaks
* Convenience function to remove a possibly non-existant fileNeal Norwitz2006-01-231-14/+10
|
* Test getsignal() and some error conditionsNeal Norwitz2006-01-231-1/+23
|
* Use unittest and make sure a few other cases don't crashNeal Norwitz2006-01-231-2/+23
|
* Bug #902075: urllib2 now handles "host:port" proxy specificationsGeorg Brandl2006-01-211-8/+13
| | | | Can/should this be backported?
* Whitespace normalization.Tim Peters2006-01-201-11/+11
|
* Patch #1410998: remove "DOS" from os.py docstringGeorg Brandl2006-01-201-1/+1
|
* Try to resolve the remaining webbrowser issues (backgrounding, local urls)Georg Brandl2006-01-201-103/+196
|
* Whitespace normalization.Tim Peters2006-01-201-1/+1
|
* Added a test for the ability to specify a class attribute in Formatter ↵Vinay Sajip2006-01-201-16/+64
| | | | configuration. Contributed by Shane Hathaway.
* Added a test for the ability to specify a class attribute in Formatter ↵Vinay Sajip2006-01-201-0/+4
| | | | configuration. Contributed by Shane Hathaway.
* Added the ability to specify a class attribute in Formatter configuration. ↵Vinay Sajip2006-01-201-1/+21
| | | | Contributed by Shane Hathaway.
* Patch #1388073: Make unittest.TestCase easier to subclassGeorg Brandl2006-01-201-13/+13
|
* Checkin the test of patch #1400181.Georg Brandl2006-01-201-0/+14
|
* Bug #1407902: Added support for sftp:// URIs to urlparse.Georg Brandl2006-01-201-11/+11
|
* Readd bug report note.Georg Brandl2006-01-201-0/+6
|
* Bug #1371247: Update Windows LCIDs in locale.py.Georg Brandl2006-01-201-32/+179
|