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
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
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
Raymond Hettinger
038018aaa4
Issue #4608 : urllib.request.urlopen does not return an iterable object
2011-06-26 14:29:35 +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
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
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
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
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
Victor Stinner
62ec61fb6a
test.support: can_symlink() removes the temporary symbolic link
2011-06-07 12:17:15 +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
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
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
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
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
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
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
Victor Stinner
3349bca46d
Issue #12096 : Fix a race condition in test_threading.test_waitfor(). Patch
...
written by Charles-François Natali.
2011-05-18 00:16:14 +02:00
Victor Stinner
e5720b989f
(Merge 3.1) Issue #11614 : Fix test_linecache, cjkencodings_test.py doesn't
...
exist anymore
2011-05-16 17:20:07 +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
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
Giampaolo Rodola'
fde86ff673
merge
2011-05-07 19:35:36 +02:00
Giampaolo Rodola'
24befa87dc
merge with 3.1
2011-05-07 19:09:34 +02:00
Giampaolo Rodola'
0b5c21f9c9
#12002 - ftplib's abort() method raises TypeError
2011-05-07 19:03:47 +02:00
Ezio Melotti
4c1aebd88b
#5421 : merge with 3.1.
2011-05-07 19:50:28 +03:00
Ezio Melotti
63e4230c38
#5421 : add tests.
2011-05-07 19:47:48 +03:00
Ezio Melotti
06383ee090
#12017 : merge with 3.1.
2011-05-07 18:15:34 +03:00
Nadeem Vawda
b0b0579625
Merge: Fix potential resource leak in test_mmap.
2011-05-07 14:35:36 +02:00
Nadeem Vawda
7420b70240
Fix potential resource leak in test_mmap.
2011-05-07 14:35:05 +02:00
Nadeem Vawda
044dfadd1c
Merge: #11277 : Fix tests - crash will not trigger if the file is closed and reopened.
2011-05-07 14:16:50 +02:00
Nadeem Vawda
909f6d2fba
Issue #11277 : Fix tests - crash will not trigger if the file is closed and reopened.
2011-05-07 14:14:53 +02:00
Nadeem Vawda
c2bb073742
Merge: #11277 : Add tests for mmap crash when using large sparse files on OS X.
...
Also, reduce code duplication in LargeMmapTests.
Original patch by Steffen Daode Nurpmeso.
2011-05-07 13:08:54 +02:00
Nadeem Vawda
ced1056925
Issue #11277 : Add tests for mmap crash when using large sparse files on OS X.
...
Also, reduce code duplication in LargeMmapTests.
Original patch by Steffen Daode Nurpmeso.
2011-05-07 13:01:50 +02:00
R David Murray
94b8ee3bff
#11999 : sync based on comparing mtimes, not mtime to system clock
2011-05-06 22:20:34 -04:00
R David Murray
caed7fe0ff
#11999 : sync based on comparing mtimes, not mtime to system clock
2011-05-06 22:07:19 -04:00
Antoine Pitrou
1c86b44506
Issue #12000 : When a SSL certificate has a subjectAltName without any
...
dNSName entry, ssl.match_hostname() should use the subject's commonName.
Patch by Nicolas Bareil.
2011-05-06 15:19:49 +02:00
Ronald Oussoren
78349b06af
merge from 3.1
2011-05-06 10:57:22 +02:00
Ronald Oussoren
f51738b10e
Fix for issue 10684: Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)
2011-05-06 10:23:04 +02:00
Antoine Pitrou
c4d7864e0e
Use shared testing facilities in test_threading
2011-05-05 20:17:32 +02:00
R David Murray
66a18fd801
#11873 : Improve test regex so random directory names don't cause test to fail
2011-05-05 11:52:44 -04:00
Nick Coghlan
0ded3e307b
Issue #11647 : allow contextmanager objects to be used as decorators as described in the docs. Initial patch by Ysj Ray.
2011-05-05 23:49:25 +10:00
Daniel Stutzbach
eda70b81d3
#11335 : Fix memory leak after key function failure in sort
2011-05-04 12:46:28 -07:00
Antoine Pitrou
0d5e52d346
Issue #1856 : Avoid crashes and lockups when daemon threads run while the
...
interpreter is shutting down; instead, these threads are now killed when
they try to take the GIL.
2011-05-04 20:02:30 +02:00
Raymond Hettinger
003be52932
Fix __hash__ in functools.cmp_to_key() to work with collections.Hashable.
2011-05-03 11:01:32 -07:00
Raymond Hettinger
a5ac2ce982
Backport 3.3 fixes and cleans ups.
2011-05-02 11:02:13 -07:00
Victor Stinner
cafa2efedb
logging: don't define QueueListener if Python has no thread support
2011-05-02 16:11:28 +02:00
R David Murray
b912c5a004
I was right, hardconding the localhost IP doesn't work in linux-vserver.
2011-05-02 08:47:24 -04:00
Victor Stinner
8108e96bc8
(Merge 3.1) Issue #11277 : mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS X
...
to get around a mmap bug with sparse files. Patch written by Steffen Daode
Nurpmeso.
2011-05-02 01:11:33 +02:00
Victor Stinner
a6cd0cf0f5
Issue #11277 : mmap calls fcntl(fd, F_FULLFSYNC) on Mac OS X to get around a
...
mmap bug with sparse files. Patch written by Steffen Daode Nurpmeso.
2011-05-02 01:05:37 +02:00
Victor Stinner
d9561318d8
(Merge 3.1) Issue #9756 : When calling a method descriptor or a slot wrapper
...
descriptor, the check of the object type doesn't read the __class__ attribute
anymore. Fix a crash if a class override its __class__ attribute (e.g. a proxy
of the str type).
2011-05-01 23:31:36 +02:00
Victor Stinner
3249dec024
Issue #9756 : When calling a method descriptor or a slot wrapper descriptor, the
...
check of the object type doesn't read the __class__ attribute anymore. Fix a
crash if a class override its __class__ attribute (e.g. a proxy of the str
type).
2011-05-01 23:19:15 +02:00
Senthil Kumaran
f108f8258e
Wrap the testskip decorator for the proper test to resolve bb failure.
2011-04-30 06:06:28 +08:00
Senthil Kumaran
e3bdcf4ffd
skip the extractall test on platforms where os.symlink is not available.
2011-04-28 17:05:55 +08:00
Senthil Kumaran
123932f237
Add tests for tarfile extractall feature when with symlinks
2011-04-28 15:38:12 +08:00
Ezio Melotti
b185a04aa1
#11926 : add missing keywords to help("keywords").
2011-04-28 07:42:55 +03:00
Éric Araujo
9a42793761
Branch merge
2011-04-27 16:23:56 +02:00
Ezio Melotti
935a588825
#11763 : don't use difflib in TestCase.assertMultiLineEqual if the strings are too long.
2011-04-27 10:17:34 +03:00
Senthil Kumaran
be5dbebeaa
merge from 3.1
2011-04-30 06:09:51 +08:00
Łukasz Langa
4d27d9e8b6
__class__ of a __class__ check worked only by chance.
2011-04-29 16:15:41 +02:00
Łukasz Langa
75da860413
TestChainMap was not previously used. Minor corrections applied.
2011-04-29 11:35:03 +02:00
Antoine Pitrou
390ea0f25d
Add WSANO_DATA to possible errors triggered by getaddrinfo (Windows)
2011-04-29 00:44:33 +02:00
Łukasz Langa
1aa422fe8f
Closes #11324 : ConfigParser(interpolation=None) doesn't work.
...
Initial patches by Tobias Brink. Thanks!
2011-04-28 17:03:45 +02:00
Łukasz Langa
ba702daef9
Style updates for the #11670 solution after post-commit review by Ezio Melotti:
...
http://mail.python.org/pipermail/python-checkins/2011-April/104688.html
Thanks!
2011-04-28 12:02:05 +02:00
Senthil Kumaran
c20566cdf8
merge from 3.1
2011-04-28 17:08:12 +08:00
Łukasz Langa
e698cd54bc
Closes #11858 : configparser.ExtendedInterpolation and section case.
...
Patch by ゆかり ぴんく魔女. Thanks!
2011-04-28 10:58:57 +02:00
Senthil Kumaran
8a410d319a
merge from 3.1
2011-04-28 15:53:09 +08:00
Ezio Melotti
44aad855dd
#11926 : merge with 3.1.
2011-04-28 07:51:14 +03:00
Ezio Melotti
75cbd73666
#11938 : Fix duplicated test name in test_inspect. Patch by Andreas Stührk.
2011-04-28 00:59:29 +03:00
Łukasz Langa
daab1c8092
Closes #11670 : configparser read_file now iterates over f.
2011-04-27 18:10:05 +02:00
Éric Araujo
944d16c6c4
Merge 3.1
2011-04-27 16:27:38 +02:00
Ezio Melotti
f2b3f780a1
#6780 : merge with 3.1.
2011-04-26 06:40:59 +03:00
Ezio Melotti
ba42fd5801
#6780 : fix starts/endswith error message to mention that tuples are accepted too.
2011-04-26 06:09:45 +03:00
Antoine Pitrou
11846905d3
Issue #11919 : try to fix test_imp failure on some buildbots.
2011-04-25 21:39:49 +02:00
Antoine Pitrou
8e60577693
Issue #10914 : Add a minimal embedding test to test_capi.
2011-04-25 21:21:07 +02:00
Éric Araujo
2bad92d310
Remove obsolete/duplicate docstring
2011-04-24 17:10:30 +02:00
Victor Stinner
7fdd0fe48f
Issue #9319 : Fix the unit test
2011-04-23 01:24:11 +02:00
Victor Stinner
c68b6aaec8
Issue #9319 : Fix a crash on parsing a Python source code without encoding
...
cookie and not valid in UTF-8: use "<file>" as the filename instead of
reading from NULL.
2011-04-23 00:41:19 +02:00
Ezio Melotti
af92842bf9
Use non-deprecated method name.
2011-04-20 21:56:21 +03:00
Jesus Cea
6159ee3cf5
MERGE: startswith and endswith don't accept None as slice index. Patch by Torsten Becker. ( closes #11828 )
2011-04-20 17:42:50 +02:00
Jesus Cea
ac4515063c
startswith and endswith don't accept None as slice index. Patch by Torsten Becker. ( closes #11828 )
2011-04-20 17:09:23 +02:00
Nadeem Vawda
cc3f029380
Merge test_startfile fix from 3.1.
2011-04-19 01:40:45 +02:00
Nadeem Vawda
58de6ee871
Fix sporadic failure in test_startfile.
...
Wait for the child process to terminate before ending the test, so that the
regrtest cleanup code doesn't get an error when it tries to delete the
temporary CWD.
2011-04-19 01:38:47 +02:00
Antoine Pitrou
f25a8de845
Issue #11790 : Fix sporadic failures in test_multiprocessing.WithProcessesTestCondition.
2011-04-16 21:02:01 +02:00
Antoine Pitrou
ee4293400c
Fix possible "file already exists" error when running the tests in parallel.
...
This is a perfect example of LBYL going wrong: that code could be executed
by several workers in parallel, and os.mkdir() attempted on the same
path by multiple processes.
2011-04-16 18:53:59 +02:00
Vinay Sajip
e723e96103
Issue #11852 : Add missing imports and update tests.
2011-04-15 22:27:17 +01:00
Raymond Hettinger
6c9e5b779f
Fix minor subclassing issue with collections.Counter
2011-04-15 13:21:30 -07:00
Raymond Hettinger
1c746c28f3
Fix minor subclassing issue with collections.Counter
2011-04-15 13:16:46 -07:00
Ezio Melotti
71e84a6e27
#5057 : Merge with 3.1.
2011-04-15 16:50:41 +03:00
Ezio Melotti
2df6a93916
Issue #5057 : fix a bug in the peepholer that led to non-portable pyc files between narrow and wide builds while optimizing BINARY_SUBSCR on non-BMP chars (e.g. "\U00012345"[0]).
2011-04-15 16:38:34 +03:00
Senthil Kumaran
b4bd4af8c4
merge from 3.1
2011-04-15 18:21:26 +08:00
Senthil Kumaran
397eb4411a
Issue #11467 : Fix urlparse behavior when handling urls which contains scheme specific part only digits.
2011-04-15 18:20:24 +08:00
Ezio Melotti
982ef4e0bc
#11845 : Fix typo in rangeobject.c that caused a crash in compute_slice_indices. Patch by Daniel Urban.
2011-04-15 08:15:40 +03:00
Senthil Kumaran
56f1e2d875
merge from 3.1
2011-04-14 13:18:55 +08:00
Senthil Kumaran
2d2ea1b431
Fix Issue11474 - fix url2pathname() handling of '/C|/' on Windows
2011-04-14 13:16:30 +08:00
Raymond Hettinger
8a9c4d9866
Issue 3051: make pure python code pass the same tests as the C version.
2011-04-13 11:49:57 -07:00
Ezio Melotti
04c6423fba
Merge with 3.1.
2011-04-13 07:18:24 +03:00
R David Murray
d5315482e9
Merge #10019 : Fix regression relative to 2.6: add newlines if indent=0
...
Patch by Amaury Forgeot d'Arc, updated by Sando Tosi.
2011-04-12 21:09:18 -04:00
Benjamin Peterson
62f8bcb0a4
merge 3.1
2011-04-12 18:34:30 -05:00
Benjamin Peterson
abdeeff3d1
merge heads
2011-04-12 18:34:06 -05:00
Benjamin Peterson
bd3e362089
make assigning to a bytes literal a syntax error ( closes #11506 )
2011-04-12 18:33:28 -05:00
Senthil Kumaran
b17abb1af9
merge from 3.1
2011-04-13 07:22:29 +08:00
Senthil Kumaran
2643041970
Fix Issue11703 - urllib2.geturl() does not return correct url when the original url contains #fragment. Patch Contribution by Santoso Wijaya.
2011-04-13 07:01:19 +08:00
Raymond Hettinger
f03d3028e0
Issue 11747: Fix output format for context diffs.
2011-04-12 15:19:33 -07:00
Raymond Hettinger
3780542039
Issue 11747: Fix output format for context diffs.
2011-04-12 15:14:12 -07:00
Raymond Hettinger
49353d0e8f
Issue #11747 : Fix range formatting in context and unified diffs.
2011-04-11 12:40:58 -07:00
Ned Deily
2604e33f30
Issue9670: Merge backout to 3.2.
2011-04-09 14:53:47 -07:00
Ned Deily
45e47e58ed
Issue9670: Back out changeset 378b40d71175; test fails on other platforms
...
and on OS X with pydebug.
2011-04-09 14:50:59 -07:00
Ned Deily
15012a67d2
Issue #9670 : merge with 3.2
2011-04-09 12:37:55 -07:00
Ned Deily
517ac72b00
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-04-09 12:32:12 -07:00
Ross Lagerwall
226580e6dc
Merge with 3.1
2011-04-09 20:05:04 +02:00
Ross Lagerwall
e620d10701
Issue #11719 : Fix message about unexpected test_msilib skip.
...
Patch by Nadeem Vawda.
2011-04-09 19:30:03 +02:00
Ezio Melotti
2e3607c1e7
#7311 : fix html.parser to accept non-ASCII attribute values.
2011-04-07 22:03:31 +03:00
Antoine Pitrou
540ab064e2
Issue #11766 : increase countdown waiting for a pool of processes to start
...
up. Hopefully fixes transient buildbot failures.
2011-04-06 22:51:17 +02:00
Senthil Kumaran
ae664fb528
Merge from 3.1
2011-04-06 14:11:09 +08:00
Senthil Kumaran
8f377a3bbe
Issue #10762 : Guard against invalid/non-supported format string '%f' on Windows. Patch Santoso Wijaya.
2011-04-06 12:54:06 +08:00
Alexander Belopolsky
b6f5ec7370
Issue #11576 : Fixed timedelta subtraction glitch on big timedelta values
2011-04-05 20:07:38 -04:00
Antoine Pitrou
04026cf56c
Try to fix sporadic test_multiprocessing failure
2011-04-05 18:12:15 +02:00
Antoine Pitrou
c824e9a713
Try to fix sporadic test_multiprocessing failure
2011-04-05 18:11:33 +02:00
Ross Lagerwall
02ba73c0ef
Merge with 3.1
2011-04-05 15:48:47 +02:00
Ross Lagerwall
4f61b02520
Issue #10963 : Ensure that subprocess.communicate() never raises EPIPE.
2011-04-05 15:34:00 +02:00
Antoine Pitrou
4333affb74
Try to fix sporadic failure in test_thread/test_threading
2011-04-04 22:00:10 +02:00
Antoine Pitrou
45fdb457da
Try to fix sporadic failure in test_thread/test_threading
2011-04-04 21:59:09 +02:00
Antoine Pitrou
e9b2a4cb59
Issue #11761 : make tests for gc.get_count() less fragile
2011-04-04 19:51:33 +02:00
Antoine Pitrou
b35f29a0e0
Issue #11761 : make tests for gc.get_count() less fragile
2011-04-04 19:50:42 +02:00
Steven Bethard
7cb20a8605
Issue #9347 : Fix formatting for tuples in argparse type= error messages.
2011-04-04 01:53:02 +02:00
Antoine Pitrou
43bf045be0
Issue #11749 : try to fix transient test_socket failure
2011-04-04 01:21:37 +02:00
Antoine Pitrou
7899acfc23
Issue #11618 : Fix the timeout logic in threading.Lock.acquire() under
...
Windows.
2011-03-31 01:00:32 +02:00
Kristjan Valur Jonsson
8c5b748026
Merge
2011-03-30 11:55:52 +00:00
Kristjan Valur Jonsson
d05595697d
Merge 3.1
2011-03-30 11:54:13 +00:00
Kristjan Valur Jonsson
fa3edbed25
Merge 3.1
2011-03-30 11:24:58 +00:00
Kristjan Valur Jonsson
35722a9376
Bugfix: Properly test for errors from PyLong_AsLong() in itertools.cycle.
...
ti can raise an exception even if PyLong_Check() has
succeeded.
2011-03-30 11:04:28 +00:00
Guido van Rossum
20d2ab435e
Merge issue 11662.
2011-03-29 12:58:29 -07:00
Guido van Rossum
acb63092b7
Merge issue 11662.
2011-03-29 12:55:41 -07:00
guido@google.com
c768ff5d4f
Merge Issue 11662 from 3.1 branch.
2011-03-29 11:51:26 -07:00
guido@google.com
a119df91f3
Issue 11662: Fix vulnerability in urllib/urllib2.
...
(This version is a cleaned-up backport of a fix by Senthil Kumaran.)
2011-03-29 11:41:02 -07:00
Benjamin Peterson
6a2638b163
Correct handling of functions with only kwarg args in getcallargs ( closes #11256 )
...
A patch from Daniel Urban.
2011-03-28 17:32:31 -05:00
Martin v. Löwis
987403bf14
merge #11696
2011-03-27 21:07:13 +02:00
Martin v. Löwis
f8d887e0d3
Closes #11696 : Fix ID generation in msilib.
...
Patch by Mark Mc Mahon.
2011-03-27 21:05:51 +02:00
Mark Dickinson
79a9036d09
Merge #9696
2011-03-27 16:30:07 +01:00
Mark Dickinson
92b60d55d9
Issue #9696 : Fix exception incorrectly raised by xdrlib.Packer.pack_int when trying to pack a negative (in-range) integer.
2011-03-27 16:25:40 +01:00
Steven Bethard
8a6a198abf
Issue #9026 : Fix order of argparse sub-commands in help messages.
2011-03-27 13:53:53 +02:00
Ross Lagerwall
17ace7a07c
Merge with 3.1
2011-03-26 21:21:46 +02:00
Ross Lagerwall
b8a5769a6d
Issue #11659 : Fix ResourceWarning in test_subprocess introduced by #11459 .
...
Patch by Ben Hayden.
2011-03-26 21:19:57 +02:00
Antoine Pitrou
d9faa201ce
Read HTTP response inside transient_internet()
2011-03-26 18:38:06 +01:00
Antoine Pitrou
b651949f53
test_urllibnet: make it so that transient_internet() applies to the
...
whole HTTP exchange, not only the opening.
2011-03-26 18:36:42 +01:00
Steven Bethard
8d9a4628c3
Issue #9348 : Raise an early error if argparse nargs and metavar don't match.
2011-03-26 17:33:56 +01:00
Mark Dickinson
633872e3fb
Merge #11675
2011-03-26 10:21:20 +00:00
Mark Dickinson
89461ef8fc
Issue #11675 : Zero-out newly-created multiprocessing.[Raw]Array objects.
2011-03-26 10:19:03 +00:00
Raymond Hettinger
1103d05775
Issue #11666 : Teach pydoc to display full help for named tuples
2011-03-25 14:15:24 -07:00
R David Murray
66a4e12da4
Merge #9557 : eliminate 3 seconds of static overhead from test_mailbox.
2011-03-25 16:16:54 -04:00
R David Murray
b9a428d57d
#9557 : eliminate 3 seconds of static overhead from test_mailbox.
...
This patch doesn't quite fix the 'run in a VM with Samba share'
timing problem, but it should at least make it better.
2011-03-25 16:03:47 -04:00