Commit graph

18162 commits

Author SHA1 Message Date
Nadeem Vawda
905cca011b Merge fix for memory leaks in zlib.compress() and .decompress().
Also, make sure that test_zlib tests decompress() for overly-large inputs.
2011-05-14 23:18:07 +02: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
9c405c470b Merge: #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail
attribute when called without a max_length argument.
2011-05-14 14:19:56 +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
63db5b6510 Merge with 3.2 and also remove captured_output from __all__ (see #7960). 2011-05-14 14:57:15 +03:00
Ezio Melotti
07352b084c Update __all__ and docstring. 2011-05-14 14:51:18 +03:00
Ezio Melotti
c3afbb9542 Skip test in test_fileinput when zlib is missing. 2011-05-14 10:10:53 +03:00
Ezio Melotti
6b8934053a #7960: merge with 3.2. 2011-05-14 08:44:12 +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
32e3fdc2d0 #5723: merge with 3.2. 2011-05-14 06:52:55 +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
4e03e9dc8d Merge with 3.2. 2011-05-14 06:24:18 +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
c729c25615 (Merge 3.2) 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:53:22 +02:00
Vinay Sajip
252048c8a1 test_logging: extended time range for rollover test. 2011-05-13 16:41:57 +01: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
Vinay Sajip
a171f9c6a3 test_logging: fixed bug in failure diagnostics. 2011-05-13 14:45:08 +01:00
Vinay Sajip
a552ca6fd0 Issue #12068: Fix appears to have worked; added more diagnostics for rare failures. 2011-05-13 12:16:04 +01:00
Vinay Sajip
672c581633 Added diagnostics to test_logging, after reverting last change. 2011-05-13 07:09:40 +01:00
Georg Brandl
cc5ea6860f Merge in changes from 3.2.1b1 release repo. 2011-05-13 06:50:56 +02:00
Antoine Pitrou
b89b31a158 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:25:53 +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
Kurt B. Kaiser
30536d1b77 Merge from 3.2
Issue #11896: Save on Close failed despite selecting "Yes" in dialog.
2011-05-12 15:36:42 -04:00
Kurt B. Kaiser
b00d0c4944 Merge from 3.1 2011-05-12 15:30:18 -04:00
Kurt B. Kaiser
0a42982316 Issue #11896: Save on Close failed despite selecting "Yes" in dialog.
_tkinter.c is returning <class '_tkinter.Tcl_Obj'> sometimes.  Don't use
tkinter.messagebox.Message - use the helper functions which convert to str.
2011-05-12 15:25:24 -04:00
Vinay Sajip
06c768a35a TimedTRotatingFileHandler test now improved to minimise chances of failure on very slow machines. 2011-05-12 16:18:29 +01:00
Gregory P. Smith
0ef3e399b8 normalize whitespace. 2011-05-11 22:20:11 -07:00
Gregory P. Smith
c9557af441 merge - 7a3f3ad83676 Fixes Issue #12044. 2011-05-11 22:18:23 -07:00
Gregory P. Smith
6b65745430 - Issue #12044: Fixed subprocess.Popen when used as a context manager to
wait for the process to end when exiting the context to avoid unintentionally
  leaving zombie processes around.
2011-05-11 21:42:08 -07:00
Antoine Pitrou
3486a98dcd Issue #9971: Write an optimized implementation of BufferedReader.readinto().
Patch by John O'Connor.
2011-05-12 01:57:53 +02:00
Kurt B. Kaiser
9dd41fa970 Merge from 3.2 2011-05-11 14:18:13 -04:00
Kurt B. Kaiser
6551baa5a5 Correct version in IDLE NEWS.txt 2011-05-11 13:54:44 -04:00
Kurt B. Kaiser
bc3e13818b Merge from 3.1 2011-05-11 13:48:54 -04:00
Kurt B. Kaiser
e147806da9 Issue #1028: Tk returns invalid Unicode null in %A: UnicodeDecodeError.
With Tk < 8.5 _tkinter.c:PythonCmd() raised UnicodeDecodeError, caused IDLE to
exit.  Converted to valid Unicode null in PythonCmd().
2011-05-11 12:24:17 -04:00
Senthil Kumaran
4de00a2e87 Fix closes Issue #11799: urllib.request Authentication Handlers will raise a
ValueError when presented with an unsupported Authentication Scheme.
2011-05-11 21:17:57 +08:00
Victor Stinner
ba9c6645f7 Issue #10419: Fix build_scripts command of distutils to handle correctly
non-ASCII scripts. Open and write the script in binary mode, but ensure that
the shebang is decodable from UTF-8 and from the encoding of the script.
2011-05-11 00:57:29 +02: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
f8d6fd605d #12051: merge with 3.2. 2011-05-11 01:23:41 +03:00
Victor Stinner
1eb4f28c6d Close #10419, issue #6011: build_scripts command of distutils handles correctly
non-ASCII path (path to the Python executable). Open and write the script in
binary mode, but ensure that the shebang is decodable from UTF-8 and from the
encoding of the script.
2011-05-11 00:14:28 +02:00
Victor Stinner
1947477072 Close #10419, issue #6011: build_scripts command of distutils handles correctly
non-ASCII path (path to the Python executable). Open and write the script in
binary mode, but ensure that the shebang is decodable from UTF-8 and from the
encoding of the script.
2011-05-11 00:14:28 +02:00
Ezio Melotti
f188bc5d46 #12051: merge with 3.1. 2011-05-11 01:10:27 +03:00
Ezio Melotti
136726537f #12051: Fix segfault in json.dumps() while encoding highly-nested objects using the C accelerations. 2011-05-11 01:02:56 +03:00
Victor Stinner
cd9dd37974 Issue #11888: skip some log2 tests on Mac OS X Tiger
System log2() is not accurate for exact power of 2.
2011-05-10 23:40:17 +02:00
Antoine Pitrou
74b4885cc9 Issue #12054: use support.find_unused_port() instead of reinventing the wheel 2011-05-10 23:37:42 +02:00
Antoine Pitrou
ccc87b53db Issue #12054: use support.find_unused_port() instead of reinventing the wheel 2011-05-10 23:37:11 +02:00