summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* regsub is gone, nothing to ignoreNeal Norwitz2006-03-261-2/+0
|
* Try to handle sys.getfilesystemencoding() returning None.Neal Norwitz2006-03-261-1/+4
| | | | | ascii seems like the safest bet that it will exist. I wonder if utf-8 would be a better choice? This should get test_fileinput passing on OpenBSD.
* Patch #1443155: Add the incremental codecs support for CJK codecs.Hye-Shik Chang2006-03-2626-506/+730
| | | | (reviewed by Walter Dörwald)
* fix typoGeorg Brandl2006-03-251-1/+1
|
* Don't decrement below zero. And add more tests.Raymond Hettinger2006-03-252-4/+19
|
* More extensive comment on __exit__ handling, per Guido's request.Phillip J. Eby2006-03-251-0/+7
|
* Whitespace normalization.Tim Peters2006-03-253-4/+4
|
* Fix a problem with @contextmanager not detecting a broken generatorPhillip J. Eby2006-03-252-1/+26
| | | | | | that yields after a throw(). Make @contextmanager not reraise exceptions, but return a false value in that case instead. Add test cases for both behaviors.
* Support throw() of string exceptions.Phillip J. Eby2006-03-251-2/+4
|
* Revert previous change. Wasn't ready yet.Raymond Hettinger2006-03-241-12/+1
|
* Add more testsRaymond Hettinger2006-03-241-1/+12
|
* Revert r42719, because the isinstance() check wasn't redundant; formatting aPhillip J. Eby2006-03-241-1/+1
| | | | string exception was causing a TypeError.
* SF Patch #1455676: Simplify using Queues with daemon consumer threadsRaymond Hettinger2006-03-242-0/+75
| | | | | Adds join() and task_done() methods to track when all enqueued tasks have been gotten and fully processed by daemon consumer threads.
* run_module shouldn't hold the import lock when running a scriptNick Coghlan2006-03-241-13/+9
|
* Use absolute import.Neal Norwitz2006-03-241-1/+1
|
* Clarify cases when waitpid might not return self.pid.Martin v. Löwis2006-03-241-2/+5
|
* Bug #1183780: Add Popen objects to _active only in __del__.Martin v. Löwis2006-03-242-7/+23
| | | | | Cleanup terminated processes as well. Add cmd attribute to Popen4.
* Exceptions should inherit from Exception now.Neal Norwitz2006-03-241-1/+1
|
* Hmmm, I don't think we wanted to test // twice and / not at all (in this ↵Neal Norwitz2006-03-241-3/+3
| | | | section).
* Exceptions should inherit from Exception now.Neal Norwitz2006-03-241-2/+2
|
* Relax result test for program mode of quopri.Martin v. Löwis2006-03-231-2/+5
|
* Preserve command name, for later printing of activeMartin v. Löwis2006-03-231-0/+4
| | | | | commands. If there are active commands when the tests start, fail, printing these commands.
* Rewrite pipe code using subprocess, to make sure theMartin v. Löwis2006-03-231-9/+9
| | | | child process is closed when the test completes.
* Forward port MvL's fix in 43227:Neal Norwitz2006-03-231-0/+4
| | | | | Fix crash when a Unicode string containing an encoding declaration is compile()d. Fixes #1115379.
* Damn another occurrence of using as as a keywordfNeal Norwitz2006-03-221-2/+2
|
* Whitespace normalization.Tim Peters2006-03-221-1/+1
|
* Record that test_wait[34] get skipped on native Windows.Tim Peters2006-03-221-0/+2
|
* Correct API design mistake from rev. 43126: make socket attributes readonly ↵Georg Brandl2006-03-212-23/+9
| | | | properties.
* Try to repair at least one segfault on the Mac buildbot,Tim Peters2006-03-211-40/+47
| | | | | | | | | | | | | | | | | | | | | | as diagnosed by Nick Coghlan. test_capi.py: A test module should never spawn a thread as a side effect of being imported. Because this one did, the segfault one of its thread tests caused didn't occur until a few tests after test_regrtest.py thought test_capi was finished. Repair that. Also join() the thread spawned at the end, so that test_capi is truly finished when regrtest reports that it's done. _testcapimodule.c test_thread_state(): this spawns a couple of non-threading.py threads, passing them a PyObject* argument, but did nothing to ensure that those threads finished before returning. As a result, the PyObject* _could_ (although this was unlikely) get decref'ed out of existence before the threads got around to using it. Added explicit synchronization (via a Python mutex) so that test_thread_state can reliably wait for its spawned threads to finish.
* Plug a leak in the ctypes test suite when tests are run repeatedly.Thomas Heller2006-03-201-0/+5
|
* Accessing unaligned structure fields works now on all architectures.Thomas Heller2006-03-202-38/+88
| | | | Including unittest.
* whitespace n11nAnthony Baxter2006-03-202-11/+11
|
* Patch #1309579: wait3 and wait4 were added to the posix module by Chad J. ↵Neal Norwitz2006-03-204-64/+144
| | | | | | | | Schroeder. This was a fair amount of rework of the patch. Refactored test_fork1 so it could be reused by the new tests for wait3/4. Also made them into new style unittests (derive from unittest.TestCase).
* SF [ 1231053 ] audioop - alaw encoding/decoding added, code updatedAnthony Baxter2006-03-201-3/+21
| | | | | | | | | This patch adds a-LAW encoding to audioop and replaces the old u-LAW encoding/decoding code with the current code from sox. Possible issues: the code from sox uses int16_t. Code by Lars Immisch
* Fix problem spotted by Coverity that occurs if tzinfo.tzname().replace()Neal Norwitz2006-03-201-0/+11
| | | | | | returns a non-string when converting %Z. Will backport.
* Source file f.flush() after writing; trying to avoid lossage if userKurt B. Kaiser2006-03-192-1/+5
| | | | kills GUI. Report from B. Sherwood. Backport to 2.3.4.
* Change raise statement to PEP 8 style.Walter Dörwald2006-03-181-2/+1
|
* Shim for test_email_renamed.py tests.Barry Warsaw2006-03-181-0/+13
|
* Merge email package 4.0 from the sandbox, including documentation, test cases,Barry Warsaw2006-03-1828-203/+3563
| | | | and NEWS updates.
* Add tests for the C APIs PyCodec_IncrementalEncoder() andWalter Dörwald2006-03-181-2/+14
| | | | PyCodec_IncrementalDecoder().
* Bug #1353433: be conciliant with spaces in redirect URLsGeorg Brandl2006-03-181-1/+3
|
* RFE #567972: Socket objects' family, type and proto properties areGeorg Brandl2006-03-172-0/+26
| | | | now exposed via new get...() methods.
* Merge changes from the upstream version:Thomas Heller2006-03-175-15/+109
| | | | | - cast is implemented as a foreign function now - On Windows, it is now possible to access functions exported by ordinal only
* as is on the road to keyword-hood, use a different var name.Neal Norwitz2006-03-171-7/+7
|
* Oops, copied the wrong code from keeprefs. Get the right codeNeal Norwitz2006-03-171-4/+9
| | | | | | this time and call gc.collect(), since there is some garbage. The original code didn't really leak (if gc.collect() was called).
* Update/expand on comments about leaking tests.Neal Norwitz2006-03-171-0/+1
|
* Ignore ctypes leaks, but add a test case so we do not forget.Neal Norwitz2006-03-171-0/+11
|
* Try to find a host that responds slower from python.org so this test does ↵Neal Norwitz2006-03-171-1/+1
| | | | not fail on macteagle (G4 OSX.4 in buildbot)
* Fix a test that fails when libGL.so and libGLU.so are not installed (on ↵Thomas Heller2006-03-161-2/+4
| | | | posix systems).
* Set eol-style to native.Tim Peters2006-03-161-13/+13
|