Antoine Pitrou
b9ac25d1c3
Issue #12440 : When testing whether some bits in SSLContext.options can be
...
reset, check the version of the OpenSSL headers Python was compiled against,
rather than the runtime version of the OpenSSL library.
2011-07-08 18:47:06 +02:00
Ned Deily
f6cbdc22be
Issue #8716 : Instead of relying on Aqua Tk exceptions to detect lack of
...
OS X window manager connection in tk tests, use OS X Application Services
API calls instead.
2011-07-05 19:09:37 -07:00
Victor Stinner
1848db891b
Issue #12493 : skip test_communicate_eintr() if signal.SIGALRM is missing
2011-07-05 14:49:46 +02:00
Victor Stinner
91e08772a6
Issue #12451 : pydoc: html_getfile() now uses tokenize.open() to support Python
...
scripts using a encoding different than UTF-8 (read the coding cookie of the
script).
2011-07-05 14:30:41 +02:00
Victor Stinner
2cfb6f3aa0
Issue #12493 : subprocess: communicate() handles EINTR
...
subprocess.Popen.communicate() now also handles EINTR errors if the process has
only one pipe.
2011-07-05 14:00:56 +02:00
Ned Deily
e2d519035f
Issue #12497 : Install test/data to prevent failures of the various codecmaps
...
tests.
2011-07-04 19:06:20 -07:00
Georg Brandl
bfd1edd155
Merge 3.2.1 release clone changes into main 3.2 branch after 3.2.1rc2 release.
2011-07-04 19:55:22 +02:00
Victor Stinner
e40b3aabfb
Issue #12469 : Run "wakeup" signal tests in subprocess to run the test in a
...
fresh process with only one thread and to not change signal handling of the
parent process.
2011-07-04 17:35:10 +02:00
Victor Stinner
4479841b83
Issue #12429 : Skip interrupted write tests on FreeBSD <= 7
...
On FreeBSD, the SIGALRM signal is sometimes received by the reader thread.
2011-07-04 11:48:17 +02:00
Victor Stinner
cd1aa0d5ea
Issue #12429 : Skip interrupted write tests on FreeBSD <= 7
...
On FreeBSD, the SIGALRM signal is sometimes received by the reader thread.
2011-07-04 11:48:17 +02:00
Ned Deily
4143535d86
Issue #8716 : Avoid crashes caused by Aqua Tk on OSX when attempting to run
...
test_tk or test_ttk_guionly under a username that is not currently logged
in to the console windowserver (as may be the case under buildbot or ssh).
2011-07-03 21:56:48 -07:00
Senthil Kumaran
9ebe08d2f6
Fix closes issue12471 - wrong TypeError message when '%i' format spec was used.
2011-07-03 21:03:16 -07:00
Senthil Kumaran
c8763b9d96
Fix closes issue issue12470 - check for utime for the skipUnless condition.
2011-07-03 18:21:38 -07:00
Senthil Kumaran
0c2dba5726
Fix closes issue issue12470 - check for utime for the skipUnless condition.
2011-07-03 18:21:38 -07:00
Victor Stinner
b1b25f0ffd
Issue #12467 : warnings: fix a race condition if a warning is emitted at
...
shutdown, if globals()['__file__'] is None.
2011-07-04 02:43:09 +02:00
Victor Stinner
8b0508ed4e
Issue #12467 : warnings: fix a race condition if a warning is emitted at
...
shutdown, if globals()['__file__'] is None.
2011-07-04 02:43:09 +02:00
Senthil Kumaran
80dffefcd9
Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an incorrect arg.
2011-07-03 17:39:20 -07:00
Senthil Kumaran
aa90e7c573
Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an incorrect arg.
2011-07-03 17:39:20 -07:00
Senthil Kumaran
7079240c4a
Fix closes issue12432 - remove the unused sys from glob.py
2011-07-03 17:21:05 -07:00
Victor Stinner
e975af62f2
Issue #12451 : pydoc: importfile() now opens the Python script in binary mode,
...
instead of text mode using the locale encoding, to avoid encoding issues.
2011-07-04 02:08:50 +02:00
Victor Stinner
6c47102982
Issue #12451 : runpy: run_path() now opens the Python script in binary mode,
...
instead of text mode using the locale encoding, to support other encodings than
UTF-8 (scripts using the coding cookie).
2011-07-04 01:45:39 +02:00
Victor Stinner
bbdc08ea6e
Issue #12451 : xml.dom.pulldom: parse() now opens files in binary mode instead
...
of the text mode (using the locale encoding) to avoid encoding issues.
2011-07-04 01:25:55 +02:00
Benjamin Peterson
ac91341333
never retain a generator's caller's exception state on the generator after a yield/return
...
This requires some trickery to properly save the exception state if the
generator creates its own exception state.
2011-07-03 16:25:11 -05:00
Benjamin Peterson
d2ed630243
merge heads
2011-07-03 13:44:56 -05:00
Benjamin Peterson
83195c3f0c
restore a generator's caller's exception state both on yield and (last) return
...
This prevents generator exception state from leaking into the caller.
Closes #12475 .
2011-07-03 13:44:00 -05:00
Georg Brandl
d4fa7ed8db
Bump to 3.2.1rc2.
2011-07-03 09:41:27 +02:00
Georg Brandl
fa76ceb3c8
Update pydoc topics.
2011-07-03 09:31:04 +02:00
Charles-François Natali
a4a04069fd
Merge issue #12352 : Fix a deadlock in multiprocessing.Heap when a block is
...
freed by the garbage collector while the Heap lock is held.
2011-07-02 14:39:53 +02:00
Charles-François Natali
778db49da9
Issue #12352 : Fix a deadlock in multiprocessing.Heap when a block is freed by
...
the garbage collector while the Heap lock is held.
2011-07-02 14:35:49 +02:00
R David Murray
ee1a7cb4a4
#11873 : another try at fixing the regex, courtesy of Victor Stinner
2011-07-01 14:55:43 -04:00
R David Murray
a3bb2f5514
#11873 : fix test regex so it covers windows os.sep as well.
2011-07-01 11:51:50 -04:00
Victor Stinner
dfde0d4650
Issue #12363 : increase the timeout of siginterrupt() tests
...
Move also the "ready" trigger after the installation of the signal handler and
the call to siginterrupt().
Use a timeout of 5 seconds instead of 3. Two seconds are supposed to be enough,
but some of our buildbots are really slow (especially the FreeBSD 6 VM).
2011-07-01 15:58:39 +02:00
Victor Stinner
8d64248c69
Issue #12363 : improve siginterrupt() tests
...
Backport commits 968b9ff9a059 and aff0a7b0cb12 from the default branch to 3.2
branch. Extract of the changelog messages:
"The previous tests used time.sleep() to synchronize two processes. If the host
was too slow, the test could fail.
The new tests only use one process, but they use a subprocess to:
- have only one thread
- have a timeout on the blocking read (select cannot be used in the test,
select always fail with EINTR, the kernel doesn't restart it)
- not touch signal handling of the parent process"
and
"Add a basic synchronization code between the child and the parent processes:
the child writes "ready" to stdout."
I replaced .communicate(timeout=3.0) by an explicit waiting loop using
Popen.poll().
2011-07-01 15:24:50 +02:00
Victor Stinner
26d318690f
Issue #11870 : Skip test_threading.test_2_join_in_forked_process() on platforms
...
with known OS bugs
Share the list of platforms with known OS bugs with other tests. Patch written
by Charles-François Natali.
2011-07-01 14:26:24 +02:00
Victor Stinner
bef7fdfc04
test_os: remove now useless TemporaryFileTests testcase
...
TemporaryFileTests has tests for os.tempnam() and os.tmpfile(), functions
removed from Python 3.
Move fdopen() tests to the FileTests testcase to test fdopen() on a file
descriptor, not on a directory descriptor (which raises an error on Windows).
2011-07-01 13:45:30 +02:00
Victor Stinner
98b3722bf7
test_os: add TemporaryFileTests to the testcase list
...
The testcase was never executed, it's now fixed.
2011-07-01 02:56:15 +02:00
Antoine Pitrou
71cbafbda1
Issue #12407 : Explicitly skip test_capi.EmbeddingTest under Windows.
2011-06-30 20:02:54 +02:00
Victor Stinner
a6d2c769fb
Issue #12451 : Open files in binary mode in some tests when the text file is not
...
needed.
Remove also an unused variable (blank) in test_threading.
2011-06-30 18:20:11 +02:00
Victor Stinner
eaf399e335
Issue #12451 : The XInclude default loader of xml.etree now decodes files from
...
UTF-8 instead of the locale encoding if the encoding is not specified. It now
also opens XML files for the parser in binary mode instead of the text mode to
avoid encoding issues.
2011-06-30 18:10:14 +02:00
Victor Stinner
12b8d14991
Issue #12451 : doctest.debug_script() doesn't create a temporary file anymore to
...
avoid encoding issues (it used the locale encoding, whereas UTF-8 should be).
Remove also an unused import (warnings).
2011-06-30 17:35:55 +02:00
Victor Stinner
e6c910e953
Issue #12451 : pydoc.synopsis() now reads the encoding cookie if available, to
...
read the Python script from the right encoding.
2011-06-30 15:55:43 +02:00
Victor Stinner
dc9b1ea02e
Issue #12451 : distutils now opens the setup script in binary mode to read the
...
encoding cookie, instead of opening it in UTF-8.
2011-06-30 15:40:22 +02:00
Victor Stinner
fcc2a21fae
Issue #12400 : regrtest.runtest() uses stream.seek(0) before .truncate()
...
.truncate(0) doesn't rewind.
2011-06-29 20:01:29 +02:00
Victor Stinner
592f679dce
Issue #12400 : test_zipimport_support doesn't restore original sys.stdout
...
anymore
regrtest doesn't check that a test doesn't output anything anymore.
2011-06-29 18:11:36 +02:00
Victor Stinner
85b3a492d6
Issue #12400 : runtest() truncates the StringIO stream before a new test
2011-06-29 17:26:38 +02:00
Victor Stinner
125b2ba41e
Issue #12400 : Add missing import (os) to test_kqueue
2011-06-29 17:20:02 +02:00
Victor Stinner
bddc4d4607
Issue #12400 : test.support.run_doctest() doesn't change sys.stdout anymore
...
regrtest doesn't check that tests doesn't write something to stdout anymore.
Don't replace sys.stdout by the original sys.stdout to be able to capture the
output for regrtest -W.
2011-06-29 15:52:46 +02:00
Victor Stinner
ea95de75dd
Issue #12400 : regrtest, force verbose mode to True with option -W
...
If verbose is False, the output is empty. Fix also a typo in a variable name.
2011-06-29 15:34:48 +02:00
Victor Stinner
8313d6aef8
Issue #12400 : runtest() reuses the same io.StringIO instance for all calls
...
* Don't force verbose to True with option -W
* Rename rerun_failed variable to output_on_failure
2011-06-29 15:22:26 +02:00
Victor Stinner
46b2091146
Issue #12400 : don't use sys.stderr in test_kqueue because it may be replaced by
...
a io.StringIO object by regrtest (which has no file descriptor).
2011-06-29 14:59:10 +02:00
Victor Stinner
bd98f9367c
Issue #12400 : remove unused variable
2011-06-29 13:24:28 +02:00
Victor Stinner
a7c33e5168
Issue #12400 : regrtest -W doesn't rerun the tests twice anymore, but captures
...
the output and displays it on failure instead. regrtest -v doesn't print the
error twice anymore if there is only one error.
2011-06-29 13:00:54 +02:00
Ned Deily
a8f8b50bd7
Issue #9516 : Change distutils to no longer globally attempt to check and
...
set the MACOSX_DEPLOYMENT_TARGET env variable for the interpreter process
on OS X. This could cause failures in non-distutils subprocesses and was
unreliable since tests or user programs could modify the interpreter
environment after distutils set it. Instead, have distutils set the
the deployment target only in the environment of each build subprocess.
Continue to use the previous algorithm for deriving the deployment target
value:
if MACOSX_DEPLOYMENT_TARGET is not set in the interpreter's env:
use the interpreter build configure MACOSX_DEPLOYMENT_TARGET
elif the MACOSX_DEPLOYMENT_TARGET env value >= configure value:
use the env MACOSX_DEPLOYMENT_TARGET
else: # env value less than interpreter build configure value
raise exception
This allows building extensions that can only run on newer versions of
the OS than the version python was built for, for example with a python
built for 10.3 or later and an extension that needs to be built for 10.5.
2011-06-28 19:44:24 -07:00
Ned Deily
d13007fa11
Issue #9516 : Correct and expand OS X deployment target tests in distutils
...
test_build_ext.
2011-06-28 19:43:15 -07:00
Ned Deily
58f27b203c
Issue #12141 : Install a copy of template C module file so that
...
test_build_ext of test_distutils is no longer silently skipped when
run outside of a build directory.
2011-06-28 00:42:50 -07:00
Ned Deily
3eb67d58d6
Issue #8746 : Correct faulty configure checks so that os.chflags() and
...
os.lchflags() are once again built on systems that support these
functions (*BSD and OS X). Also add new stat file flags for OS X
(UF_HIDDEN and UF_COMPRESSED). Also add additional tests for
os.chflags() and os.lchflags(). (Tests by Garrett Cooper)
2011-06-28 00:00:28 -07:00
Ned Deily
11f00f3b00
Issue #10736 : Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9
...
on Mac OS X. (Patch by Ronald Oussoren)
2011-06-27 23:12:20 -07:00
Benjamin Peterson
68b543aa02
fix ws
2011-06-27 17:51:18 -05:00
Benjamin Peterson
6ccfe85847
add more ast tests ( closes #11302 )
...
A patch from Vincent Legoll.
2011-06-27 17:46:06 -05:00
Benjamin Peterson
0f93d3d6f3
strip trailing ws
2011-06-27 09:18:46 -05:00
Benjamin Peterson
afa44a8096
update profile license ( closes #12417 )
2011-06-27 09:14:34 -05:00
Benjamin Peterson
8d77069558
update profile license ( closes #12417 )
2011-06-27 09:14:34 -05:00
Raymond Hettinger
038018aaa4
Issue #4608 : urllib.request.urlopen does not return an iterable object
2011-06-26 14:29:35 +02:00
Raymond Hettinger
70797194ab
Issue 11802: filecmp cache was growing without bound.
2011-06-25 17:20:21 +02:00
Mark Dickinson
eceebeb14f
Issue #12408 : Fix relative import in test_future5.py. Thanks Cesare Di Mauro.
2011-06-25 13:29:14 +02:00
Raymond Hettinger
5279fb99cb
Code simplification suggested by Sven Marnach.
2011-06-25 11:30:53 +02:00
R David Murray
e697e3750f
#10206 : add test for previously fixed bug.
...
Patch by Francisco Martín Brugué.
2011-06-24 13:26:31 -04:00
Victor Stinner
66f7d66174
Issue #11223 : skip also test_rlock_acquire_interruption() on FreeBSD6
2011-06-23 14:22:28 +02:00
Victor Stinner
f25ae48dfd
Issue #11223 : skip test_lock_acquire_interruption() on FreeBSD6
...
Locks are implemented using a mutex and a condition variable of the pthread
library on FreeBSD6. POSIX condition variables cannot be interrupted by signals
(see pthread_cond_wait manual page).
2011-06-23 11:57:56 +02:00
Victor Stinner
62d511809d
Issue #12383 : skip test_empty_env() of subprocess on Windows
...
Cannot test an empty environment on Windows: Windows requires at least the
SYSTEMROOT environment variable to start Python.
2011-06-23 01:02:25 +02:00
Victor Stinner
237e5cb376
Issue #12383 : fix test_empty_env() of subprocess on Mac OS X
...
Mac OS X adds __CF_USER_TEXT_ENCODING variable to an empty environment. Fix
also the test on the Py_ENABLE_SHARED config varible: test that the variable is
present, don't check it's value.
2011-06-22 21:28:43 +02:00
Victor Stinner
372309a551
Issue #12383 : skip test_empty_env() if compiled is compiled in shared mode
...
Try also to get more informations about the Mac OS X failure: display the keys
of the environment, instead of just the number of variables.
2011-06-21 21:59:06 +02:00
Victor Stinner
f1512a2967
Close #12383 : Fix subprocess module with env={}: don't copy the environment
...
variables, start with an empty environment.
2011-06-21 17:18:38 +02:00
Victor Stinner
2fae27b735
Issue #12285 : multiprocessing.Pool() raises a ValueError if the number of
...
processes if negative or null.
2011-06-20 17:53:35 +02:00
Benjamin Peterson
206cd1c284
fix uglyNamingConvention
2011-06-19 17:49:13 -05:00
R David Murray
e5e366c856
#11584 : make Header and make_header handle binary unknown-8bit input
...
Analogous to the decode_header fix, this fix makes Header.append and
make_header correctly handle the unknown-8bit charset introduced by email5.1,
when the input to them is binary strings. Previous to this fix the
make_header(decode_header(x)) == x invariant was broken in the face of the
unknown-8bit charset.
2011-06-18 12:57:28 -04:00
R David Murray
6bdb1769dc
#11584 : make decode_header handle Header objects correctly
...
This updates b21fdfa0019c, which fixed this bug incorrectly.
2011-06-18 12:30:55 -04:00
R David Murray
c88bce1580
#11700 : proxy object close methods can now be called multiple times
...
This makes them work like the close provided by regular file objects.
2011-06-17 22:24:05 -04:00
R David Murray
05ff990401
#11767 : use context manager to close file in __getitem__ to prevent FD leak
...
All of the other methods in mailbox that create message objects take care to
close the file descriptors they use, so it seems to make sense to have
__getitem__ do so as well.
Patch by Filip Gruszczyński.
2011-06-17 12:54:56 -04:00
Victor Stinner
eaca5c8b95
Issue #10883 : test_urllib2net closes socket explicitly
2011-06-17 14:53:02 +02:00
Victor Stinner
a4c45d73cf
Issue #12133 : fix a ResourceWarning in urllib.request
...
AbstractHTTPHandler.do_open() of urllib.request closes the HTTP connection if
its getresponse() method fails with a socket error. Patch written by Ezio
Melotti.
2011-06-17 14:01:18 +02:00
Victor Stinner
0f83b1511c
Issue #12310 : finalize the old process after _run_after_forkers()
...
multiprocessing: Process._bootstrap() keeps a reference to the old process to
delay its finalization until after _run_after_forkers() as been executed. This
change should fix a crash on Mac OS X Tiger when a lock is released after a
fork.
Patch written by Charles-François Nataliv and Antoine Pitrou.
2011-06-17 12:31:49 +02:00
Brian Curtin
a87d586fd6
branch merge?
2011-06-13 16:10:32 -05:00
Brian Curtin
d25aef55c8
Fix #12084 . os.stat on Windows wasn't working properly with relative symlinks.
...
Use of DeviceIoControl to obtain the symlink path via the reparse tag was
removed. The code now uses GetFinalPathNameByHandle in the case of a
symbolic link and works properly given the added test which creates a symbolic
link and calls os.stat on it from multiple locations.
Victor Stinner also noticed an issue with os.lstat following the os.stat
code path when being passed bytes. The posix_lstat function was adjusted to
properly hook up win32_lstat instead of the previous STAT macro (win32_stat).
2011-06-13 15:16:04 -05:00
Benjamin Peterson
9620cc0463
allow "fake" filenames in findsource ( closes #9284 )
...
This allows findsource() to work in doctests.
A patch from Dirkjan Ochtman.
2011-06-11 15:53:11 -05:00
Benjamin Peterson
d858df20d0
bump to 3.1.4
2011-06-11 09:58:58 -05:00
Benjamin Peterson
9aa68e4b32
merge 3.1 ( #12009 )
2011-06-10 12:29:40 -05:00
Benjamin Peterson
1df0f214a9
fix regression in netrc comment handling ( closes #12009 )
2011-06-10 11:32:52 -05:00
Victor Stinner
e6eafa2ade
Issue #10801 : Fix test_unicode_filenames() of test_zipfile
...
Just try to open files from the ZIP for reading, don't extract them to avoid
UnicodeEncodeError if the filename is not encodable to the filesystem encoding
(e.g. ASCII locale encoding).
2011-06-10 16:32:54 +02:00
R David Murray
4fbb9dbd34
#10694 : zipfile now ignores garbage at the end of a zipfile.
...
Original fix by 'rep', final patch (with tests) by Xuanji Li.
2011-06-09 15:50:51 -04:00
R David Murray
0f663d07e6
#12283 : Fixed regression in smtplib quoting of leading dots in DATA.
...
I unfortunately introduced the regression when I refactored the code,
and there were no tests of quoting so it wasn't caught. Now there
is one.
2011-06-09 15:05:57 -04:00
Vinay Sajip
8168d10ea6
Issue #12168 : SysLogHandler now allows NUL termination to be controlled using a new 'append_nul' attribute on the handler.
2011-06-09 16:50:49 +01:00
Brian Curtin
95d028fd18
Correction to 88e318166eaf - Issue #11583
...
Rather than wrapping the C _isdir function in a Python function,
just import the C _isdir function directly. Additionally, add in the
docstring which was left out.
2011-06-09 09:10:38 -05:00
Brian Curtin
9c669ccc77
Fix #11583 . Changed os.path.isdir to use GetFileAttributes instead of os.stat.
...
By changing to the Windows GetFileAttributes API in nt._isdir we can figure
out if the path is a directory without opening the file via os.stat. This has
the minor benefit of speeding up os.path.isdir by at least 2x for regular
files and 10-15x improvements were seen on symbolic links (which opened the
file multiple times during os.stat). Since os.path.isdir is used in
several places on interpreter startup, we get a minor speedup in startup time.
2011-06-08 18:17:18 -05:00
Łukasz Langa
41c1910bb3
#12274 : use proper escaping for % in IDLE config.
2011-06-07 15:19:44 +02:00
Victor Stinner
62ec61fb6a
test.support: can_symlink() removes the temporary symbolic link
2011-06-07 12:17:15 +02:00
Éric Araujo
5b52f95797
Branch merge
2011-06-06 17:11:47 +02:00
Éric Araujo
70798be6f6
Remove unneeded executable bit on two distutils files
2011-06-04 20:47:26 +02:00
Victor Stinner
f5048a4075
Issue #12016 : Add test_errorhandle() to TestBase_Mapping of
...
test_multibytecodec_support. Improve also error message of the
test_errorhandle() of TestBase.
2011-06-03 23:44:39 +02:00
Raymond Hettinger
3d89057ff8
Fix named tuples to work with vars().
2011-06-02 23:40:24 -07:00
Victor Stinner
88701e27e9
Close #12230 : Mac OS X Tiger (10.4) has a kernel bug: sometimes, the file
...
descriptor of a pipe closed in the parent process is valid in the child process
according to fstat(), but the mode of the file descriptor is invalid, and read
or write raise an error.
Add also requires_mac_ver() decorator to test.support.
2011-06-01 13:13:04 +02:00
Victor Stinner
87b9bc3893
Close #12085 : Fix an attribute error in subprocess.Popen destructor if the
...
constructor has failed, e.g. because of an undeclared keyword argument. Patch
written by Oleg Oshmyan.
2011-06-01 00:57:47 +02:00
R David Murray
ac4e5abc78
#12147 : make send_message correctly handle Sender and Resent- headers.
...
Original patch by Nicolas Estibals. My tweaks to the patch were mostly
style/cosmetic, and adding more tests.
2011-07-02 21:03:19 -04:00
Vinay Sajip
5bdae3bb7c
Closes #12291 : Fixed bug which was found when doing multiple loads from one stream.
2011-07-02 16:42:47 +01:00
Victor Stinner
ee49797c8d
Issue #12057 : Add tests for ISO 2022 codecs
...
iso2022_jp, iso2022_jp_2 and iso2022_kr
2011-05-31 00:01:24 +02:00
Benjamin Peterson
5f250fbafe
update pydoc-topics
2011-05-29 16:09:08 -05:00
Benjamin Peterson
9a63745273
bump to 3.1.4rc1
2011-05-29 16:06:00 -05:00
Éric Araujo
4b8f6651f0
Branch merge
2011-05-29 18:05:53 +02:00
Éric Araujo
e4427bf9c9
Branch merge
2011-05-29 17:56:20 +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
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
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
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
É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
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
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
É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
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
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
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
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
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
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
Ezio Melotti
84f75c680c
#12074 : remove the /0 when there are no failures.
2011-05-24 01:00:10 +03:00
Benjamin Peterson
200fe3d747
merge heads
2011-05-23 16:29:50 -05:00
Benjamin Peterson
f5fcd33be9
merge 3.1
2011-05-23 16:22:42 -05: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
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
3c8d12d6b8
Issue #10801 : Remove a debug print() from test_zipfile
2011-05-22 22:12:27 +02:00
Antoine Pitrou
a98d26a500
Issue #12138 : fix use of transient_internet() in test_urllibnet
2011-05-22 17:35:17 +02:00
Georg Brandl
9c1928f0a9
Merge release branch after 3.2.1rc1.
2011-05-21 17:35:33 +02:00
Victor Stinner
62a68f2dbe
test_pydoc: skip PydocServerTest if thread support is disabled
2011-05-20 02:29:13 +02:00
Victor Stinner
4445ec81c1
(Merge 3.1) Issue #12124 : zipimport doesn't keep a reference to
...
zlib.decompress() anymore to be able to unload the module.
2011-05-20 00:18:58 +02: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
Antoine Pitrou
b4410dbea6
Issue #12065 : connect_ex() on an SSL socket now returns the original errno
...
when the socket's timeout expires (it used to return None).
2011-05-18 18:51:06 +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