Commit graph

8139 commits

Author SHA1 Message Date
Victor Stinner
e98f177ca6 Issue #11614: Fix test_linecache, cjkencodings_test.py doesn't exist anymore 2011-05-16 17:18:51 +02:00
Victor Stinner
b67cf161bc (Merge 3.1) Issue #12057: Convert CJK encoding testcase BLOB into multiple text
files
2011-05-16 16:45:15 +02:00
Victor Stinner
033a543ab1 Issue #12057: Convert CJK encoding testcase BLOB into multiple text files 2011-05-16 16:43:38 +02:00
Victor Stinner
9cd6626f3d (Merge 3.1) Issue #11614: import __hello__ prints "Hello World!". Patch written
by Andreas Stührk.
2011-05-16 16:32:33 +02:00
Victor Stinner
c77b931196 Issue #11614: import __hello__ prints "Hello World!". Patch written by Andreas
Stührk.
2011-05-16 16:29:35 +02:00
Victor Stinner
d0e11ec5b0 Issue #10756: atexit normalizes the exception before displaying it. Patch by
Andreas Stührk.

Backport a fix already applied to Python 3.2+ (4a82be47a948 + 5060a92a8597).
2011-05-15 18:57:44 +02:00
Ronald Oussoren
222e89a598 Issue #9516: avoid errors in sysconfig when MACOSX_DEPLOYMENT_TARGET is set in shell.
Without this patch python will fail to start properly when the environment
variable MACOSX_DEPLOYMENT_TARGET is set on MacOSX and has a value that is
not compatible with the value during Python's build. This is caused by code
in sysconfig that was only meant to be used in disutils.
2011-05-15 16:46:11 +02:00
Nadeem Vawda
760155cc52 Merge: Fix copy-paste mistake in new zlib test. 2011-05-15 00:48:57 +02:00
Nadeem Vawda
1161a9ca40 Fix copy-paste mistake in new zlib test. 2011-05-15 00:48:24 +02:00
Gregory P. Smith
11ddc999e0 merge heads 2011-05-14 15:33:43 -07:00
Gregory P. Smith
873cab2890 merge heads. 2011-05-14 15:26:35 -07:00
Nadeem Vawda
565d659dcd Merge: #8650: Make zlib.[de]compressobj().[de]compress() 64-bit clean.
Raise an OverflowError if the input data is too large, instead of silently
truncating the input and returning an incorrect result.
2011-05-15 00:20:52 +02:00
Nadeem Vawda
0c3d96ae1d Issue #8650: Make zlib.[de]compressobj().[de]compress() 64-bit clean.
Raise an OverflowError if the input data is too large, instead of silently
truncating the input and returning an incorrect result.
2011-05-15 00:19:50 +02:00
Gregory P. Smith
12c9d028ed Fixes Issue #12059: Properly handle missing hash functions even when
the expected builtin modules are not present.

This includes a unittest for __get_builtin_constructor() in the face
of such an error.
2011-05-14 15:15:49 -07:00
Nadeem Vawda
154bdf92fc Fix memory leaks in zlib.compress() and .decompress().
Also, make sure that test_zlib tests decompress() for overly-large inputs.
2011-05-14 23:07:36 +02:00
Nadeem Vawda
1b8a417d9f Issue #8650: Backport 64-bit safety fixes for compress() and decompress(). 2011-05-14 22:26:55 +02:00
Nadeem Vawda
5eef502de0 Merge: #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail
attribute when called without a max_length argument.
2011-05-14 14:15:47 +02:00
Nadeem Vawda
7619e88adb Issue #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail
attribute when called without a max_length argument.
2011-05-14 14:05:20 +02:00
Ezio Melotti
07352b084c Update __all__ and docstring. 2011-05-14 14:51:18 +03:00
Ezio Melotti
e728d72d8a #7960: merge with 3.1. 2011-05-14 08:43:25 +03:00
Ezio Melotti
fc778fd067 #7960: fix docstrings for captured_output and captured_stdout. 2011-05-14 08:22:47 +03:00
Ezio Melotti
6b60fb9148 #5723: merge with 3.1. 2011-05-14 06:47:51 +03:00
Ezio Melotti
3c0d8a1cc7 #5723: Improve json tests to be executed with and without accelerations. 2011-05-14 06:38:03 +03:00
Ezio Melotti
3659f27ad3 Merge with 3.1. 2011-05-14 06:23:20 +03:00
Ezio Melotti
fec3ad1036 Change import_fresh_module to work with packages. 2011-05-14 06:02:25 +03:00
Victor Stinner
e670c889cc Issue #11996: libpython (gdb), replace "py-bt" command by "py-bt-full" and add
a smarter "py-bt" command printing a classic Python traceback.
2011-05-13 17:40:15 +02:00
Antoine Pitrou
00dd182b8e Issue #12062: Fix a flushing bug when doing a certain type of I/O sequence
on a file opened in read+write mode (namely: reading, seeking a bit forward,
writing, then seeking before the previous write but still within buffered
data, and writing again).
2011-05-13 00:16:28 +02:00
Antoine Pitrou
7c40489180 Issue #12062: Fix a flushing bug when doing a certain type of I/O sequence
on a file opened in read+write mode (namely: reading, seeking a bit forward,
writing, then seeking before the previous write but still within buffered
data, and writing again).
2011-05-13 00:13:33 +02:00
Gregory P. Smith
c9557af441 merge - 7a3f3ad83676 Fixes Issue #12044. 2011-05-11 22:18:23 -07:00
Victor Stinner
530712625b Issue #11169: compileall module uses repr() to format filenames and paths to
escape surrogate characters and show spaces.
2011-05-11 00:36:28 +02:00
Ezio Melotti
f188bc5d46 #12051: merge with 3.1. 2011-05-11 01:10:27 +03:00
Antoine Pitrou
ccc87b53db Issue #12054: use support.find_unused_port() instead of reinventing the wheel 2011-05-10 23:37:11 +02:00
Antoine Pitrou
1be815aac4 Issue #8498: In socket.accept(), allow to specify 0 as a backlog value in
order to accept exactly one connection.  Patch by Daniel Evers.
2011-05-10 19:16:29 +02:00
Victor Stinner
17ca323e7c (Merge 3.1) Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional
OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2
protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid.

Optimize also ssl.get_protocol_name(): speed does matter!
2011-05-10 00:48:41 +02:00
Victor Stinner
ee18b6f2fd Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional
OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2
protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid.

Optimize also ssl.get_protocol_name(): speed does matter!
2011-05-10 00:38:00 +02:00
Ezio Melotti
219a5dcc78 Merge with 3.1. 2011-05-09 18:40:42 +03:00
Ezio Melotti
f9756c2336 Some more tests were incorrectly marked as C specific. 2011-05-09 18:36:53 +03:00
Martin v. Löwis
867754e3e3 merge 11164 2011-05-09 08:10:38 +02:00
Martin v. Löwis
2f48d892d4 Stop trying to use _xmlplus in the xml module. Closes #11164.
Patch by Arfrever Frehtes Taifersar Arahesis.
2011-05-09 08:05:43 +02:00
Ezio Melotti
19f7ca25e5 #11910: merge with 3.1. 2011-05-09 07:27:20 +03:00
Ezio Melotti
fd69abb358 Some tests were incorrectly marked as C specific. 2011-05-09 07:20:47 +03:00
Ezio Melotti
8269a44d50 #11910: Fix test_heapq to skip the C tests when _heapq is missing. 2011-05-09 07:15:04 +03:00
Ezio Melotti
313fa9d365 #11910: merge with 3.1. 2011-05-09 06:43:14 +03:00
Ezio Melotti
199e0857f9 #11910: change import_fresh_module to return None when one of the "fresh" modules can not be imported. 2011-05-09 06:41:55 +03:00
Benjamin Peterson
31dc3735a5 merge 3.1 2011-05-08 15:34:24 -05:00
Benjamin Peterson
262c5827a5 put import_fresh_module in __all__ 2011-05-08 15:32:46 -05:00
Antoine Pitrou
6ef5dfdb94 Merge 2011-05-07 19:47:24 +02:00
Antoine Pitrou
4d1cd0a0a0 Merge 2011-05-07 19:45:34 +02:00
Antoine Pitrou
5bcc50c1b5 Merge: Issue #11927: SMTP_SSL now uses port 465 by default as documented. 2011-05-07 19:41:33 +02:00
Antoine Pitrou
c1d520634a Issue #11927: SMTP_SSL now uses port 465 by default as documented. Patch by Kasun Herath. 2011-05-07 19:39:37 +02:00