Charles-François Natali
2d51721832
Issue #12196 : Add PIPE_MAX_SIZE to test.support, constant larger than the
...
underlying OS pipe buffer size.
2011-05-29 16:36:44 +02:00
Éric Araujo
7f9b37be45
Port r86353 to packaging ( #10359 : “;” after function definition is invalid in ISO C)
2011-05-29 02:59:52 +02:00
Éric Araujo
601aba6f15
Merge touch-ups and fixes for #9831 (+port fix to packaging) and #9223 from 3.2
2011-05-29 00:56:39 +02:00
Éric Araujo
c5069e0070
Merge doc touch-ups and fixes for #9831 and #9223 from 3.1
2011-05-29 00:29:56 +02:00
É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
Gregory P. Smith
8281ba8bcb
follow on to the last commit, remove the final POSIXPurePythonTestCase
...
reference. (the difference between running test_subprocess.py
directly rather than via regrtest.py)
2011-05-28 10:00:14 -07:00
Gregory P. Smith
59fd1bfcc1
The _posixsubprocess module is now required on POSIX.
...
Remove the pure Python POSIX subprocess implementation.
If non-CPython VMs (are there any for 3.x yet?) were somehow depending
on this, they already have the exact same set of problems with Python
code being executed after os.fork() that _posixsubprocess was written
to deal with. They should implement an equivalent outside of Python.
2011-05-28 09:32:39 -07:00
Gregory P. Smith
7439e7b7ce
Fix ProcessTestCasePOSIXPurePython to test the module from import when
...
_posixsubprocess doesn't exist rather than simply stubbing it out
after the fact. This adds coverage for the RuntimeWarning as well as
using the pure python _create_pipe instead of using
_posixsubprocess.cloexec_pipe unintentionally with the pure python
code.
Ironically: I don't think any platform should ever actually _use_ the
pure Python subprocess code on POSIX platforms anymore. This at least
tests it properly in this stable branch. The pure python code for
this is likely to be removed in 3.3.
2011-05-28 09:06:02 -07:00
Gregory P. Smith
c80504fb69
Fix ProcessTestCasePOSIXPurePython to test the module from import when
...
_posixsubprocess doesn't exist rather than simply stubbing it out
after the fact. This adds coverage for the RuntimeWarning as well as
using the pure python _create_pipe instead of using
_posixsubprocess.cloexec_pipe unintentionally with the pure python
code.
Ironically: I don't think any platform should ever actually _use_ the
pure Python subprocess code on POSIX platforms anymore. This at least
tests it properly in this stable branch. The pure python code for
this is likely to be removed in 3.3.
2011-05-28 09:06:02 -07:00
Ned Deily
59a333844a
Issue #985064 : Make plistlib more resilient to faulty input plists.
...
Patch by Mher Movsisyan.
2011-05-28 03:09:33 -07:00
Ned Deily
32b5cb0a66
Issue #985064 : Make plistlib more resilient to faulty input plists.
...
Patch by Mher Movsisyan.
2011-05-28 03:02:30 -07: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
61be422bd7
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:45:52 -07:00
Ned Deily
056f5b9dad
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:36:12 -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
aeabd5f29c
add some with syntax examples
2011-05-27 15:02:03 -05:00
Victor Stinner
0501070669
Revert my commit 3555cf6f9c98: "Issue #8796 : codecs.open() calls the builtin
...
open() function instead of using StreamReaderWriter. Deprecate StreamReader,
StreamWriter, StreamReaderWriter, StreamRecoder and EncodedFile() of the codec
module. Use the builtin open() function or io.TextIOWrapper instead."
"It has not been approved !" wrote Marc-Andre Lemburg.
2011-05-27 16:50:40 +02:00
Benjamin Peterson
43b068648e
try to use the same str object for all code filenames when compiling or unmarshalling ( #12190 )
...
This should reduce memory usage.
2011-05-27 09:08:01 -05:00
Nadeem Vawda
4e18ac850f
Merge heads
2011-05-27 02:03:06 +02:00
Nadeem Vawda
55b4338874
Issue #1625 : BZ2File and bz2.decompress() now support multi-stream files.
...
Initial patch by Nir Aides.
2011-05-27 01:52:15 +02:00
Victor Stinner
98fe1a0c3b
Issue #8796 : codecs.open() calls the builtin open() function instead of using
...
StreamReaderWriter. Deprecate StreamReader, StreamWriter, StreamReaderWriter,
StreamRecoder and EncodedFile() of the codec module. Use the builtin open()
function or io.TextIOWrapper instead.
2011-05-27 01:51:18 +02:00
Éric Araujo
d4ae04fdb8
Branch merge
2011-05-26 16:50:19 +02:00
Éric Araujo
dec2067b2a
Branch merge
2011-05-26 16:49:59 +02:00
Éric Araujo
f46676d48f
Branch merge
2011-05-26 16:35:14 +02:00
Victor Stinner
b57f108b03
Issue #12175 : BufferedReader.read(-1) now calls raw.readall() if available.
2011-05-26 00:19:38 +02:00
Tarek Ziade
5eb555990a
Issue #12180 : Fixed a few remaining errors in test_packaging when no threading.
2011-05-25 23:46:09 +02:00
Victor Stinner
d2780aedce
(Merge 3.2) Issue #12175 : RawIOBase.readall() now returns None if read()
...
returns None.
2011-05-25 22:51:16 +02:00
Victor Stinner
988512cfd7
(Merge 3.1) Issue #12175 : RawIOBase.readall() now returns None if read()
...
returns None.
2011-05-25 22:49:15 +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
af62c7d3de
(Merge 3.2) Issue #12175 : FileIO.readall() now raises a ValueError instead of
...
an IOError if the file is closed.
2011-05-25 22:13:47 +02:00
Victor Stinner
4767114e77
(Merge 3.1) Issue #12175 : FileIO.readall() now raises a ValueError instead of
...
an IOError if the file is closed.
2011-05-25 22:11:55 +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
Senthil Kumaran
242926d227
merge commit.
2011-05-26 00:26:32 +08:00
Senthil Kumaran
5e826e8a1b
Fix closes issue #11109 - socketserver.ForkingMixIn leaves zombies, also fails to reap all zombies in one pass.
...
A new method called service_action is made available in BaseServer, called by
serve_forever loop. This useful in cases where Mixins can use it for cleanup
action. ForkingMixin class uses service_action to collect the zombie child
processes. Initial Patch by Justin Wark.
2011-05-26 00:22:59 +08:00
Éric Araujo
aa1ef2d735
Merge 3.2
2011-05-25 18:22:26 +02:00
Éric Araujo
559b5f1ca0
Minor cleanup in sysconfig.
...
Also remove outdated and unhelpful docstrings in test_sysconfig.
2011-05-25 18:21:43 +02:00
Antoine Pitrou
b46004c94f
Issue #12045 : Avoid duplicate execution of command in ctypes.util._get_soname().
...
Patch by Sijin Joseph.
2011-05-25 18:17:25 +02:00
Éric Araujo
51b7aedadd
Merge 3.1
2011-05-25 18:13:49 +02:00
Éric Araujo
29ef0064de
Branch merge
2011-05-25 18:12:22 +02:00
Benjamin Peterson
dac9acedfd
test that object has a __dir__() implementation
2011-05-25 09:33:37 -05:00
Benjamin Peterson
81b21d7766
test values and types of (True/False).(imag/real)
2011-05-25 09:21:46 -05:00
Victor Stinner
2e2baa9208
Issue #12049 : test_ssl now checks also that RAND_bytes() raises an error if
...
there is not enough entropy.
2011-05-25 11:15:16 +02:00
Victor Stinner
c13ef66649
Issue #8407 : Fix the signal handler of the signal module: if it is called
...
twice, it now writes the number of the second signal into the wakeup fd.
2011-05-25 02:35:58 +02:00
Benjamin Peterson
b45c7087aa
excellent place for assertRaises
2011-05-24 19:31:01 -05:00
Victor Stinner
be6210363e
Issue #8533 : regrtest replaces also sys.stdout on Windows
...
Replace sys.stdout to use backslashreplace. Use '\n' newline on all operating
systems.
2011-05-25 02:01:55 +02:00
Victor Stinner
6daa33c8ac
Issue #10818 : Remove deprecated pydoc.serve() function
...
The pydoc module has a new enhanced web server.
2011-05-25 01:41:22 +02:00
Victor Stinner
383c3fc6b4
Issue #10818 : Remove the Tk GUI of the pydoc module (pydoc -g has been
...
deprecated in Python 3.2).
2011-05-25 01:35:05 +02:00
Nadeem Vawda
f1a1af21eb
Fix typo in bz2 module.
2011-05-25 00:32:08 +02:00
Victor Stinner
62666e1db1
(Merge 3.2) Issue #12057 : Add tests for the HZ encoding
2011-05-25 00:17:13 +02:00
Victor Stinner
8ed8416c2b
(Merge 3.1) Issue #12057 : Add tests for the HZ encoding
2011-05-25 00:16:43 +02:00
Victor Stinner
8fdfc20fc4
Issue #12057 : Add tests for the HZ encoding
2011-05-25 00:06:51 +02:00
Charles-François Natali
1f4560c872
Issue #1441530 : In imaplib, read the data in one chunk to speed up large
...
reads and simplify code.
2011-05-24 23:47:49 +02:00
Victor Stinner
17dc81951a
(Merge 3.2) Issue #12070 : Fix the Makefile parser of the sysconfig module to
...
handle correctly references to "bogus variable" (e.g. "prefix=$/opt/python").
2011-05-24 23:38:03 +02:00
Victor Stinner
1273b7cd9c
Issue #12070 : Fix the Makefile parser of the sysconfig module to handle
...
correctly references to "bogus variable" (e.g. "prefix=$/opt/python").
2011-05-24 23:37:07 +02:00
Victor Stinner
eb734f77ad
(Merge 3.2) 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:24:11 +02:00
Victor Stinner
d48ba0bde5
(Merge 3.1) 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:22:17 +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
abf22b405f
merge 3.2
2011-05-24 12:51:32 -05:00
Benjamin Peterson
e6a06217d2
merge 3.1
2011-05-24 12:51:24 -05:00
Benjamin Peterson
f847393308
backout 8b384de4e780, so a proper fix can be considered ( #5715 )
2011-05-24 12:50:34 -05:00
Benjamin Peterson
9b325b0ace
merge 3.2
2011-05-24 12:09:47 -05:00
Benjamin Peterson
48e21fc46f
merge 3.1
2011-05-24 12:09:26 -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
247b52bdec
Issue #5715 : In socketserver, close the server socket in the child process.
2011-05-24 18:29:46 +02:00
Charles-François Natali
cf057597e6
Issue #5715 : In socketserver, close the server socket in the child process.
2011-05-24 18:27:25 +02: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
82b00c1d30
move specialized dir implementations into __dir__ methods ( closes #12166 )
2011-05-24 11:09:06 -05:00
Victor Stinner
9bcfacd4fc
Issue #12167 : packaging.tests.test_dist unloads the temporary module
...
Fix a reference leak.
2011-05-24 14:01:39 +02:00
Victor Stinner
79d1b1ce3f
Issue #12167 : packaging.tests.support, LoggingCatcher restores correctly the
...
log level. Avoid also calls to .addCleanup() in setUp().
2011-05-24 13:59:21 +02:00
Victor Stinner
99c8b16143
Issue #12049 : Add RAND_bytes() and RAND_pseudo_bytes() functions to the ssl
...
module.
2011-05-24 12:05:19 +02:00
Vinay Sajip
b7b1930fe3
Updated test_rollover delay to just over a second.
2011-05-24 07:12:41 +01:00
Victor Stinner
e36f37525b
Issue #12105 : test_posix skips test_oscloexec() on Linux < 2.6.23
2011-05-24 00:29:43 +02:00
Victor Stinner
fea0f4d517
Issue #12158 : Move linux_version() from test_socket to test.support
2011-05-24 00:24:19 +02:00
Victor Stinner
25000d4d31
Issue #11377 : platform.popen() emits a DeprecationWarning
2011-05-24 00:16:16 +02:00
Ezio Melotti
a9100721e9
Merge heads.
2011-05-24 01:03:33 +03:00
Ezio Melotti
64af7c0d36
#12074 : merge with 3.2.
2011-05-24 01:01:08 +03:00
Vinay Sajip
3ef1229b14
Issue #12151 : Test now ignores datagram socket errors after server is closed.
2011-05-23 23:00:42 +01:00
Ezio Melotti
84f75c680c
#12074 : remove the /0 when there are no failures.
2011-05-24 01:00:10 +03:00
Benjamin Peterson
bfcdcf9282
merge heads
2011-05-23 16:30:29 -05:00
Benjamin Peterson
200fe3d747
merge heads
2011-05-23 16:29:50 -05:00
Benjamin Peterson
5cc10b0009
merge 3.2
2011-05-23 16:27:36 -05:00
Benjamin Peterson
f5fcd33be9
merge 3.1
2011-05-23 16:22:42 -05:00
Victor Stinner
08c719eb95
(Merge 3.2) Issue #12074 : regrtest displays also the current number of failures
2011-05-23 23:16:09 +02:00
Victor Stinner
a2a895c46c
Issue #12074 : regrtest displays also the current number of failures
2011-05-23 23:14:05 +02:00
Benjamin Peterson
7963a35b41
correctly lookup __dir__
2011-05-23 16:11:05 -05:00
Vinay Sajip
acd902be64
Issue #12151 : Correction to diagnostic code.
2011-05-23 21:49:09 +01:00
Vinay Sajip
ba980db797
Issue #12151 : Added diagnostics to help diagnose intermittent socket errors.
2011-05-23 21:37:54 +01:00
Tarek Ziade
e1177d9d17
Issue #12125 : fixed the failures under Solaris due to improper test cleanup.
2011-05-23 19:07:56 +02:00
Tarek Ziade
fabc30833f
fixed the cwd cleanup in packaging test_util
2011-05-23 18:47:27 +02:00
Tarek Ziade
eb64b61bf5
make sure the cwd is restored on tearDown
2011-05-23 18:31:20 +02:00
Tarek Ziade
a1ae533ac9
make sure build_dir.build_lib is synced to the faked build location
2011-05-23 17:35:20 +02:00
Victor Stinner
d6881701fb
Merge 3.2
2011-05-23 14:58:07 +02:00
Victor Stinner
b43dd4b8ca
Merge 3.1
2011-05-23 14:57:05 +02: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
cc6491a0fa
Issue #12105 : test_posix, add the value of O_CLOEXEC in the error message
2011-05-23 12:54:52 +02:00
Gregory P. Smith
a454ef6985
Update documentation to mention bytes instead byte string and correct one
...
mentioned string to the accurate description of what type is required.
2011-05-22 22:29:49 -07:00
Victor Stinner
949c890e48
Issue #12151 : test_logging writes debug messages to stderr, not stdout
...
stdout are lost in buildbots
2011-05-23 01:16:44 +02:00
Tarek Ziade
e5f9cbdaae
skip more tests in packaging if threading is not supported
2011-05-23 00:41:27 +02:00
Tarek Ziade
a3c1545a2e
not using a server name anymore as the 127.0.0.1 <> localhost symmetry is not true under Windows 7
2011-05-22 23:25:48 +02:00
Victor Stinner
3c8d12d6b8
Issue #10801 : Remove a debug print() from test_zipfile
2011-05-22 22:12:27 +02:00