Neal Norwitz
7545a6bac2
regsub is gone, nothing to ignore
2006-03-26 04:59:27 +00:00
Neal Norwitz
2c85d826d8
Try to handle sys.getfilesystemencoding() returning None.
...
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.
2006-03-26 03:11:57 +00:00
Hye-Shik Chang
e2ac4abd01
Patch #1443155 : Add the incremental codecs support for CJK codecs.
...
(reviewed by Walter Dörwald)
2006-03-26 02:34:59 +00:00
Georg Brandl
baf05b7e09
fix typo
2006-03-25 13:12:56 +00:00
Raymond Hettinger
c4e94b90a8
Don't decrement below zero. And add more tests.
2006-03-25 12:15:04 +00:00
Tim Peters
e33901eb2b
Whitespace normalization.
2006-03-25 01:50:43 +00:00
Phillip J. Eby
6edd258608
Fix a problem with @contextmanager not detecting a broken generator
...
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.
2006-03-25 00:28:24 +00:00
Phillip J. Eby
bee0712214
Support throw() of string exceptions.
2006-03-25 00:05:50 +00:00
Raymond Hettinger
43b00da219
Revert previous change. Wasn't ready yet.
2006-03-24 23:55:32 +00:00
Raymond Hettinger
e751c86dcb
Add more tests
2006-03-24 23:47:53 +00:00
Raymond Hettinger
fd3fcf0b35
SF Patch #1455676 : Simplify using Queues with daemon consumer threads
...
Adds join() and task_done() methods to track when all enqueued tasks have
been gotten and fully processed by daemon consumer threads.
2006-03-24 20:43:29 +00:00
Neal Norwitz
cdb7948f97
Use absolute import.
2006-03-24 08:58:38 +00:00
Neal Norwitz
c6fe059512
Use absolute import. (Should this go into 2.5?)
2006-03-24 08:57:54 +00:00
Martin v. Löwis
478c82d30f
Bug #1183780 : Add Popen objects to _active only in __del__.
...
Cleanup terminated processes as well.
Add cmd attribute to Popen4.
2006-03-24 08:14:54 +00:00
Neal Norwitz
bcc0db82dc
Get rid of remnants of integer division
2006-03-24 08:14:36 +00:00
Neal Norwitz
ed483ba63b
String exceptions are gone and so are classic classes.
2006-03-24 08:08:49 +00:00
Neal Norwitz
846d72a7d7
Exceptions should inherit from Exception now.
2006-03-24 08:02:51 +00:00
Neal Norwitz
1e32b6927f
Must inherit from Exception now.
2006-03-24 08:02:35 +00:00
Neal Norwitz
c3e54b8480
Use *absolute* import now that it is required. (Should this go into 2.5? Hopefully not the bogus comment about using relative imports. That was just to see if anyone was paying attention.)
2006-03-24 07:38:37 +00:00
Neal Norwitz
16d6510425
Use relative import now that it is required. (Should this go into 2.5?)
2006-03-24 07:35:29 +00:00
Neal Norwitz
de868c9a1b
Hmmm, I don't think we wanted to test // twice and / not at all (in this section).
2006-03-24 07:30:56 +00:00
Neal Norwitz
2a0c7801a5
Use relative import now that it is required. (Should this go into 2.5?)
2006-03-24 07:10:31 +00:00
Neal Norwitz
5a822fb720
Exceptions should inherit from Exception now.
2006-03-24 07:03:44 +00:00
Neal Norwitz
0fb43762d5
Must inherit from Exception now.
2006-03-24 07:02:16 +00:00
Neal Norwitz
ef4f7f0298
Use relative import now that it is required. (Should this go into 2.5?)
2006-03-24 06:59:24 +00:00
Martin v. Löwis
c92157ff52
Relax result test for program mode of quopri.
2006-03-23 19:14:23 +00:00
Martin v. Löwis
83be9669c8
Rewrite pipe code using subprocess, to make sure the
...
child process is closed when the test completes.
2006-03-23 18:16:43 +00:00
Neal Norwitz
e98ccf6690
Forward port MvL's fix in 43227:
...
Fix crash when a Unicode string containing an encoding declaration is
compile()d. Fixes #1115379 .
2006-03-23 05:39:47 +00:00
Neal Norwitz
914a81841f
Get doctest to pass. The problem was int/int -> float now. There
...
were some cases where an int was assumed.
Also had to change the string of the exception when dividing and int by zero.
Not sure what the best error message should be. Currently
5 / 0 yields the message: ZeroDivisionError: float division
That isn't entirely correct. But I'm not sure what else to do.
2006-03-22 09:20:30 +00:00
Tim Peters
b84de02f75
Record that test_wait[34] get skipped on native Windows.
2006-03-22 02:58:17 +00:00
Georg Brandl
bb03ac0dae
Correct API design mistake from rev. 43126: make socket attributes readonly properties.
2006-03-21 18:17:25 +00:00
Tim Peters
59b96c1029
Try to repair at least one segfault on the Mac buildbot,
...
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.
2006-03-21 03:58:41 +00:00
Anthony Baxter
46fa48ab04
whitespace n11n
2006-03-20 07:10:01 +00:00
Neal Norwitz
05a45599d7
Patch #1309579 : wait3 and wait4 were added to the posix module by Chad J. 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).
2006-03-20 06:30:08 +00:00
Anthony Baxter
fa86907aae
SF [ 1231053 ] audioop - alaw encoding/decoding added, code updated
...
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
2006-03-20 05:21:58 +00:00
Neal Norwitz
d5b0c9b87e
Fix problem spotted by Coverity that occurs if tzinfo.tzname().replace()
...
returns a non-string when converting %Z.
Will backport.
2006-03-20 01:58:39 +00:00
Barry Warsaw
e5c5117acf
Shim for test_email_renamed.py tests.
2006-03-18 16:17:17 +00:00
Barry Warsaw
40ef0067ad
Merge email package 4.0 from the sandbox, including documentation, test cases,
...
and NEWS updates.
2006-03-18 15:41:53 +00:00
Walter Dörwald
9ae019bf5b
Add tests for the C APIs PyCodec_IncrementalEncoder() and
...
PyCodec_IncrementalDecoder().
2006-03-18 14:22:26 +00:00
Georg Brandl
bc45a3f821
RFE #567972 : Socket objects' family, type and proto properties are
...
now exposed via new get...() methods.
2006-03-17 19:17:34 +00:00
Neal Norwitz
c72f501aa2
as is on the road to keyword-hood, use a different var name.
2006-03-17 08:55:46 +00:00
Neal Norwitz
bd2835c6ae
as is a keyword now :-)
2006-03-17 08:54:15 +00:00
Neal Norwitz
7096760b25
Get rid of xreadlines() (methods).
2006-03-17 08:29:44 +00:00
Neal Norwitz
d91085598f
Remove apply()
2006-03-17 08:00:19 +00:00
Neal Norwitz
d5f8ec27a8
Oops, copied the wrong code from keeprefs. Get the right code
...
this time and call gc.collect(), since there is some garbage.
The original code didn't really leak (if gc.collect() was called).
2006-03-17 07:15:59 +00:00
Neal Norwitz
ce96f69d69
Get rid of a bunch more raw_input references
2006-03-17 06:49:51 +00:00
Neal Norwitz
9e2b9665ae
Whoops, input *and* raw_input are slated for removal, and now both are gone.
2006-03-17 06:04:34 +00:00
Neal Norwitz
cd65e3fc7d
raw_input() -> input(). old input behavior is history (and test_builtin passes again). It was failing due to future division.
2006-03-17 05:59:16 +00:00
Neal Norwitz
770a800967
Update/expand on comments about leaking tests.
2006-03-17 04:52:38 +00:00
Neal Norwitz
ddda855337
Ignore ctypes leaks, but add a test case so we do not forget.
2006-03-17 04:45:38 +00:00