Éric Araujo
489c8ff26b
Fix test_build_py when sys.dont_write_bytecode is true ( #9831 ).
...
The tests now pass all combinations of -O/-OO and -B. See also #7071
and #6292 for previous variations on the same theme.
test_versionpredicate needs a skip when sys.flags.optimize is true, but
I don’t know how to make that work with a DocTestSuite.
2011-05-28 23:32:50 +02:00
Ned Deily
b8e59f77e6
Issue #985064 : Make plistlib more resilient to faulty input plists.
...
Patch by Mher Movsisyan.
2011-05-28 02:19:19 -07:00
Ned Deily
9a7c524dc6
Issue #9670 : Increase the default stack size for secondary threads on
...
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
2011-05-28 00:19:56 -07:00
Benjamin Peterson
0a5dad9ef1
fix spacing
2011-05-27 14:17:04 -05:00
Benjamin Peterson
74897ba46f
fix indentation
2011-05-27 14:10:24 -05:00
Éric Araujo
f33de71514
Minor doc addition for clarity
2011-05-27 04:42:47 +02:00
Éric Araujo
e0854f9dbf
Add missing closing paren
2011-05-27 04:36:52 +02:00
Éric Araujo
dec2067b2a
Branch merge
2011-05-26 16:49:59 +02:00
Victor Stinner
a80987f20d
Issue #12175 : RawIOBase.readall() now returns None if read() returns None.
2011-05-25 22:47:16 +02:00
Victor Stinner
b79f28ccbd
Issue #12175 : FileIO.readall() now raises a ValueError instead of an IOError if
...
the file is closed.
2011-05-25 22:09:03 +02:00
Éric Araujo
29ef0064de
Branch merge
2011-05-25 18:12:22 +02:00
Victor Stinner
46f8264b8e
Issue #12057 : Add cjkencodings directory to the Makefile and Tools/msi/msi.py
2011-05-25 01:13:59 +02:00
Victor Stinner
8fdfc20fc4
Issue #12057 : Add tests for the HZ encoding
2011-05-25 00:06:51 +02:00
Victor Stinner
6bcbef7da0
Issue #12100 : Don't reset incremental encoders of CJK codecs at each call to
...
their encode() method anymore, but continue to call the reset() method if the
final argument is True.
2011-05-24 22:17:55 +02:00
Benjamin Peterson
f847393308
backout 8b384de4e780, so a proper fix can be considered ( #5715 )
2011-05-24 12:50:34 -05:00
Benjamin Peterson
fbe56bb8bd
use '->' to indicate return values
2011-05-24 12:42:51 -05:00
Benjamin Peterson
a7cdb0f218
generally, sockets should be closed after they're used
2011-05-24 12:06:31 -05:00
Charles-François Natali
7b54e7562d
Issue #5715 : In socketserver, close the server socket in the child process.
2011-05-24 18:23:15 +02:00
Benjamin Peterson
7963a35b41
correctly lookup __dir__
2011-05-23 16:11:05 -05:00
Victor Stinner
2cca057284
test_codecs now removes the temporay file (created by the test)
2011-05-23 14:51:42 +02:00
Victor Stinner
3c8d12d6b8
Issue #10801 : Remove a debug print() from test_zipfile
2011-05-22 22:12:27 +02:00
Eli Bendersky
46ab96a0c8
Issue 12126: removing incorrect claim about return value of select
2011-05-22 06:56:15 +03:00
Benjamin Peterson
2340986fe0
this should actually be an IOError
2011-05-20 11:49:06 -05:00
Benjamin Peterson
249b508c98
add example for not using access
2011-05-20 11:41:13 -05:00
Ezio Melotti
261d855fd6
#12072 : add missing parenthesis in the doc. Patch by Sandro Tosi.
2011-05-20 15:04:38 +03:00
Victor Stinner
4925cde1cc
Issue #12124 : zipimport doesn't keep a reference to zlib.decompress() anymore
...
to be able to unload the module.
2011-05-20 00:16:09 +02:00
Victor Stinner
ae8856fe36
Ooops, add the missing file of the backport of commit 33543b4e0e5d from Python
...
3.2 (#10801 : In zipfile, support different encodings for the header and the
filenames. Patch by MvL, test by Eli Bendersky.)
2011-05-18 13:48:41 +02:00
Victor Stinner
ff1d2f4cc5
Backport commit 33543b4e0e5d from Python 3.2: #10801 : In zipfile, support
...
different encodings for the header and the filenames. Patch by MvL, test by
Eli Bendersky.
2011-05-18 13:43:23 +02:00
Ronald Oussoren
02a67ac72b
Fix #10154 and #10090 : locale normalizes the UTF-8 encoding to "UTF-8" instead of "UTF8"
...
On MacOSX and OpenBSD (and possibly other BSDs) "en_US.UTF-8" is a valid locale
while "en_US.UTF8" is not. As the former works on Linux as well it is better
to normalize to that value.
2011-05-17 12:44:54 +02:00
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
272e24356e
Issue #11614 : Fix importlib tests for the new __hello__ module
2011-05-16 16:57:18 +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
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
Victor Stinner
2ec6b176bd
Issue #12060 : Use sig_atomic_t type and volatile keyword in the signal module.
...
Patch written by Charles-François Natali.
2011-05-15 10:21:59 +02:00
Georg Brandl
0b2489e986
Closes #6498 : fix several misspellings of "SystemExit" as "SystemError".
2011-05-15 08:49:12 +02:00
Nadeem Vawda
1161a9ca40
Fix copy-paste mistake in new zlib test.
2011-05-15 00:48:24 +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
Kurt B. Kaiser
84aacf8912
Merge heads
2011-05-14 17:30:58 -04:00
Kurt B. Kaiser
dfbe1592db
Issue #6378 : Further adjust idle.bat to start associated Python
2011-05-14 17:20:09 -04:00
Łukasz Langa
4ad78ab766
pprint usage example rethought.
2011-05-14 22:43:44 +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
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
eda199030b
#11979 : improve wording and markup in sockets howto. Patch by Xavier Morel.
2011-05-14 09:17:52 +03:00
Ezio Melotti
fc778fd067
#7960 : fix docstrings for captured_output and captured_stdout.
2011-05-14 08:22:47 +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
fec3ad1036
Change import_fresh_module to work with packages.
2011-05-14 06:02:25 +03: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
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
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